Class: Jaina::Parser Private
- Inherits:
-
Object
- Object
- Jaina::Parser
- Defined in:
- lib/jaina/parser.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: Expression, Tokenizer Classes: AST, CodeConverter
Instance Attribute Summary collapse
- #program ⇒ String readonly private
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(program) ⇒ void constructor private
- #parse ⇒ Jaina::Parser::AST private
Constructor Details
#initialize(program) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
33 34 35 |
# File 'lib/jaina/parser.rb', line 33 def initialize(program) @program = program.dup.tap(&:freeze) end |
Instance Attribute Details
#program ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 |
# File 'lib/jaina/parser.rb', line 26 def program @program end |
Class Method Details
.parse(program) ⇒ Jaina::Parser::AST
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/jaina/parser.rb', line 17 def parse(program) new(program).parse end |
Instance Method Details
#parse ⇒ Jaina::Parser::AST
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
41 42 43 |
# File 'lib/jaina/parser.rb', line 41 def parse AST.build(program) end |