private SemanticStateMachine produceAst(String s) {
   lexer.lex(s);
   parser.handleEvent(EOF, -1, -1);
   return analyzer.analyze(builder.getFsm());
 }