Class: Dhaka::ParseSuccessResult
- Inherits:
-
Object
- Object
- Dhaka::ParseSuccessResult
- Defined in:
- lib/parser/parse_result.rb
Overview
Returned on successful parsing of the input token stream.
Instance Attribute Summary collapse
-
#parse_tree ⇒ Object
(also: #syntax_tree)
Contains the parse result.
Instance Method Summary collapse
-
#has_error? ⇒ Boolean
This is false.
-
#initialize(parse_tree) ⇒ ParseSuccessResult
constructor
:nodoc:.
Constructor Details
#initialize(parse_tree) ⇒ ParseSuccessResult
:nodoc:
6 7 8 |
# File 'lib/parser/parse_result.rb', line 6 def initialize(parse_tree) #:nodoc: @parse_tree = parse_tree end |
Instance Attribute Details
#parse_tree ⇒ Object Also known as: syntax_tree
Contains the parse result.
5 6 7 |
# File 'lib/parser/parse_result.rb', line 5 def parse_tree @parse_tree end |
Instance Method Details
#has_error? ⇒ Boolean
This is false.
10 11 12 |
# File 'lib/parser/parse_result.rb', line 10 def has_error? false end |