/** * Creates a new Parser. * * @param automata The automata of the parser. * * @param eofCheck Whether to check that all input gets parsed. * * @param start The starting automaton. * * @param emptyType The kevs.empty type. * * @param charType The char type. * * @param posType The positive check type. * * @param negType The negative check type. */ public Parser(final List<FA<E>> automata, final boolean eofCheck, final int start, final E emptyType, final E charType, final E posType, final E negType) { this.automata = automata; this.eofCheck = eofCheck; this.start = start; this.empty = new Empty<E>(emptyType); this.charType = charType; this.posType = posType; this.negType = negType; }
/** * Creates a new Parser. * * @param automata The automata of the parser. * * @param eofCheck Whether to check that all input gets parsed. * * @param start The starting automaton. * * @param emptyType The kevs.empty type. * * @param charType The char type. * * @param posType The positive check type. * * @param negType The negative check type. */ public Parser(final List<FA<E>> automata, final boolean eofCheck, final int start, final E emptyType, final E charType, final E posType, final E negType) { this.automata = automata; this.eofCheck = eofCheck; this.start = start; this.empty = new Empty<E>(emptyType); this.charType = charType; this.posType = posType; this.negType = negType; }