/** the generated parser, with debugging messages. Maintains a dynamic state and value stack. @param yyLex scanner. @param ayydebug debug message writer implementing <tt>yyDebug</tt>, or <tt>null</tt>. @return result of the last reduction, if any. */ public Object yyparse (RubyLexer yyLex, Object ayydebug) throws java.io.IOException { this.yydebug = (org.jruby.parser.YYDebug) ayydebug; return yyparse(yyLex); }
/** the generated parser, with debugging messages. Maintains a dynamic state and value stack. @param yyLex scanner. @param ayydebug debug message writer implementing <tt>yyDebug</tt>, or <tt>null</tt>. @return result of the last reduction, if any. */ public Object yyparse (RubyLexer yyLex, Object ayydebug) throws java.io.IOException { this.yydebug = (org.jruby.parser.YYDebug) ayydebug; return yyparse(yyLex); }
/** The parse method use an lexer stream and parse it to an AST node * structure */ public RubyParserResult parse(ParserConfiguration configuration) throws IOException { support.reset(); support.setConfiguration(configuration); support.setResult(new RubyParserResult()); yyparse(lexer, configuration.isDebug() ? new YYDebug() : null); return support.getResult(); } }
/** The parse method use an lexer stream and parse it to an AST node * structure */ public RubyParserResult parse(ParserConfiguration configuration) throws IOException { support.reset(); support.setConfiguration(configuration); support.setResult(new RubyParserResult()); yyparse(lexer, configuration.isDebug() ? new YYDebug() : null); return support.getResult(); } }