Package org.jruby.parser

Examples of org.jruby.parser.ParserSupport


    };

    // -- lexer for finding language parts --
    lexer = new RubyYaccLexer();

    ParserSupport parserSupport = new ParserSupport();
    RubyStepMeta meta = new RubyStepMeta();
    Ruby runtime = RubyStepFactory.createScriptingContainer(true,meta.getRubyVersion()).getProvider().getRuntime();
    ParserConfiguration parserConfig = new ParserConfiguration(runtime, 0, true, CompatVersion.BOTH);
    parserSupport.setConfiguration(parserConfig);
    parserSupport.setResult(new RubyParserResult());
    parserSupport.setWarnings(new RubyWarnings(null));
    parserSupport.initTopLocalVariables();

    lexer.setEncoding(RubyYaccLexer.UTF8_ENCODING);
    lexer.setParserSupport(parserSupport);
    lexer.setState(RubyYaccLexer.LexState.EXPR_BEG);
View Full Code Here

TOP

Related Classes of org.jruby.parser.ParserSupport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.