assertEqual(expected, result);
}
private GeneralParserProcessor getGeneralParserProcessor(Grammar grammar)
{
GeneralParserProcessor processor = new GeneralParserProcessor();
processor.setLog(new ConsoleLog());
/*Automaton automaton =
(new AutomatonBuilder(grammar, new ConsoleLog())).getParserAutomaton();*/
// (new AutomatonBuilder(grammar)).getParserAutomaton();
Automaton automaton = new Automaton(grammar, new ConsoleLog());
assertNotNull("Test if automaton is generated", automaton);
processor.setParserAutomaton(automaton);
return processor;
}