Class: Parser::Ruby27WithCLexer
- Inherits:
-
Ruby27
- Object
- Ruby27
- Parser::Ruby27WithCLexer
- Defined in:
- lib/c_lexer.rb
Instance Method Summary collapse
-
#initialize(builder = Parser::Builders::Default.new) ⇒ Ruby27WithCLexer
constructor
A new instance of Ruby27WithCLexer.
Constructor Details
#initialize(builder = Parser::Builders::Default.new) ⇒ Ruby27WithCLexer
Returns a new instance of Ruby27WithCLexer.
96 97 98 99 100 101 102 |
# File 'lib/c_lexer.rb', line 96 def initialize(builder=Parser::Builders::Default.new) super(builder) @lexer = ::Parser::CLexer.new(version) @lexer.diagnostics = @diagnostics @lexer.static_env = @static_env @lexer.context = @context end |