FIRE Logo

Parsers

FIRE/J parsers are modules that convert each regular expression to a DFA. Basically there exist two parsers in the main FIRE/J distribution, automaton and firej.

Automaton

The Automaton parser is based on the automaton regular expression library. This library is DFA and implements a very fast engine for parsing and running regular expressions. The generated automaton is not fully featured though, and if you use this parser, the result code will not support groups (are supported syntactically though). To enable this compiler just invoke RegexFactory class as follows:
Regex r = RegexFactory.createRegex(regex, flags, "org.firej.dfa.automaton.ParserAutomaton", writer);
or if you want to initialise this writer as default:
// returns true/false
ParserPlugins.getInstance().load("org.firej.dfa.automaton.ParserAutomaton");
The automaton parser is the default parsing module in FIRE/J distribution.

fire/j

This will be FIRE/J's main parsing engine (will support POSIX). Still under development.