public DefaultRubyParser() { this(new ParserSupport()); }
public DefaultRubyParser() { this(new ParserSupport()); }
@Deprecated public RubyParser(LexerSource source) { this(new ParserSupport(), source); }
@Deprecated public RubyParser(LexerSource source) { this(new ParserSupport(), source); }
public RubyParser(LexerSource source, IRubyWarnings warnings) { this.support = new ParserSupport(); this.lexer = new RubyLexer(support, source, warnings); support.setLexer(lexer); support.setWarnings(warnings); }
public RubyParser(LexerSource source, IRubyWarnings warnings) { this.support = new ParserSupport(); this.lexer = new RubyLexer(support, source, warnings); support.setLexer(lexer); support.setWarnings(warnings); }
private void initLexer(String title) { LexerSource lexerSource = new ByteListLexerSource(title, 0, new ByteList(utf8Bytes), null); lexerSource.setEncoding(UTF8Encoding.INSTANCE); ParserSupport parserSupport = new ParserSupport(); lexer = new RubyLexer(parserSupport, lexerSource, new NullWarnings(Ruby.getGlobalRuntime())); parserSupport.setLexer(lexer); parserSupport.setConfiguration(new ParserConfiguration(Ruby.getGlobalRuntime(), 0, false, true, false)); parserSupport.setResult(new RubyParserResult()); parserSupport.setWarnings(new NullWarnings(Ruby.getGlobalRuntime())); parserSupport.initTopLocalVariables(); lexer.setState(LexingCommon.EXPR_BEG); }