//Grammar grammar = GrammarFactory.createGrammar(grammarconfig);
Grammar grammar = grammarfactory.getGrammar();
/*this.parserautomaton = (new ParserAutomatonBuilder(grammar,
log)).getParserAutomaton();*/
this.parserautomaton = new Automaton(grammar, log);
/*if (cacheFile!=null)
{
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(cacheFile));
out.writeObject(this.parserautomaton);