@Override public Object execute(ParserSupport support, RubyLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { support.getResult().addBeginNode(new PreExe19Node(((ISourcePosition)yyVals[-3+yyTop]), support.getCurrentScope(), ((Node)yyVals[-1+yyTop]))); yyVal = null; return yyVal; } };
@Override public Object execute(ParserSupport support, RubyLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { support.getResult().addBeginNode(new PreExe19Node(((ISourcePosition)yyVals[-3+yyTop]), support.getCurrentScope(), ((Node)yyVals[-1+yyTop]))); yyVal = null; return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { support.getResult().addBeginNode(new PreExe19Node(((Token)yyVals[-4+yyTop]).getPosition(), support.getCurrentScope(), ((Node)yyVals[-1+yyTop]))); yyVal = null; return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { support.getResult().addBeginNode(new PreExe19Node(((Token)yyVals[-4+yyTop]).getPosition(), support.getCurrentScope(), ((Node)yyVals[-1+yyTop]))); yyVal = null; return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { support.getResult().addBeginNode(new PreExe19Node(((Token)yyVals[-4+yyTop]).getPosition(), support.getCurrentScope(), ((Node)yyVals[-1+yyTop]))); yyVal = null; return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { support.getResult().addBeginNode(new PreExe19Node(((Token)yyVals[-4+yyTop]).getPosition(), support.getCurrentScope(), ((Node)yyVals[-1+yyTop]))); yyVal = null; return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { support.getResult().addBeginNode(new PreExeNode(((Token)yyVals[-4+yyTop]).getPosition(), support.getCurrentScope(), ((Node)yyVals[-1+yyTop]))); support.popCurrentScope(); yyVal = null; /*XXX 0;*/ return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { support.getResult().addBeginNode(new PreExeNode(((Token)yyVals[-4+yyTop]).getPosition(), support.getCurrentScope(), ((Node)yyVals[-1+yyTop]))); support.popCurrentScope(); yyVal = null; /*XXX 0;*/ return yyVal; } };
@Override public Object execute(ParserSupport support, RubyLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { /* ENEBO: Removed !compile_for_eval which probably is to reduce warnings*/ if (((Node)yyVals[0+yyTop]) != null) { /* last expression should not be void */ if (((Node)yyVals[0+yyTop]) instanceof BlockNode) { support.checkUselessStatement(((BlockNode)yyVals[0+yyTop]).getLast()); } else { support.checkUselessStatement(((Node)yyVals[0+yyTop])); } } support.getResult().setAST(support.addRootNode(((Node)yyVals[0+yyTop]))); return yyVal; } };
@Override public Object execute(ParserSupport support, RubyLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { /* ENEBO: Removed !compile_for_eval which probably is to reduce warnings*/ if (((Node)yyVals[0+yyTop]) != null) { /* last expression should not be void */ if (((Node)yyVals[0+yyTop]) instanceof BlockNode) { support.checkUselessStatement(((BlockNode)yyVals[0+yyTop]).getLast()); } else { support.checkUselessStatement(((Node)yyVals[0+yyTop])); } } support.getResult().setAST(support.addRootNode(((Node)yyVals[0+yyTop]))); return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { if (((Node)yyVals[0+yyTop]) != null) { /* last expression should not be void */ if (((Node)yyVals[0+yyTop]) instanceof BlockNode) { support.checkUselessStatement(((BlockNode)yyVals[0+yyTop]).getLast()); } else { support.checkUselessStatement(((Node)yyVals[0+yyTop])); } } support.getResult().setAST(support.addRootNode(((Node)yyVals[0+yyTop]), support.getPosition(((Node)yyVals[0+yyTop])))); return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { if (((Node)yyVals[0+yyTop]) != null) { /* last expression should not be void */ if (((Node)yyVals[0+yyTop]) instanceof BlockNode) { support.checkUselessStatement(((BlockNode)yyVals[0+yyTop]).getLast()); } else { support.checkUselessStatement(((Node)yyVals[0+yyTop])); } } support.getResult().setAST(support.addRootNode(((Node)yyVals[0+yyTop]), support.getPosition(((Node)yyVals[0+yyTop])))); return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { /* ENEBO: Removed !compile_for_eval which probably is to reduce warnings*/ if (((Node)yyVals[0+yyTop]) != null) { /* last expression should not be void */ if (((Node)yyVals[0+yyTop]) instanceof BlockNode) { support.checkUselessStatement(((BlockNode)yyVals[0+yyTop]).getLast()); } else { support.checkUselessStatement(((Node)yyVals[0+yyTop])); } } support.getResult().setAST(support.addRootNode(((Node)yyVals[0+yyTop]), support.getPosition(((Node)yyVals[0+yyTop])))); return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { /* ENEBO: Removed !compile_for_eval which probably is to reduce warnings*/ if (((Node)yyVals[0+yyTop]) != null) { /* last expression should not be void */ if (((Node)yyVals[0+yyTop]) instanceof BlockNode) { support.checkUselessStatement(((BlockNode)yyVals[0+yyTop]).getLast()); } else { support.checkUselessStatement(((Node)yyVals[0+yyTop])); } } support.getResult().setAST(support.addRootNode(((Node)yyVals[0+yyTop]), support.getPosition(((Node)yyVals[0+yyTop])))); return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { /* ENEBO: Removed !compile_for_eval which probably is to reduce warnings*/ if (((Node)yyVals[0+yyTop]) != null) { /* last expression should not be void */ if (((Node)yyVals[0+yyTop]) instanceof BlockNode) { support.checkUselessStatement(((BlockNode)yyVals[0+yyTop]).getLast()); } else { support.checkUselessStatement(((Node)yyVals[0+yyTop])); } } support.getResult().setAST(support.addRootNode(((Node)yyVals[0+yyTop]), support.getPosition(((Node)yyVals[0+yyTop])))); return yyVal; } };
@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) { /* ENEBO: Removed !compile_for_eval which probably is to reduce warnings*/ if (((Node)yyVals[0+yyTop]) != null) { /* last expression should not be void */ if (((Node)yyVals[0+yyTop]) instanceof BlockNode) { support.checkUselessStatement(((BlockNode)yyVals[0+yyTop]).getLast()); } else { support.checkUselessStatement(((Node)yyVals[0+yyTop])); } } support.getResult().setAST(support.addRootNode(((Node)yyVals[0+yyTop]), support.getPosition(((Node)yyVals[0+yyTop])))); return yyVal; } };
/** 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(); } }
/** The parse method use an lexer stream and parse it to an AST node * structure */ public RubyParserResult parse(ParserConfiguration configuration, LexerSource source) throws IOException { support.reset(); support.setConfiguration(configuration); support.setResult(new RubyParserResult()); lexer.reset(); lexer.setSource(source); lexer.setEncoding(configuration.getKCode().getEncoding()); 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, LexerSource source) throws IOException { support.reset(); support.setConfiguration(configuration); support.setResult(new RubyParserResult()); lexer.reset(); lexer.setSource(source); lexer.setEncoding(configuration.getKCode().getEncoding()); yyparse(lexer, configuration.isDebug() ? new YYDebug() : null); return support.getResult(); } }