Class: Dhaka::ParseSuccessResult

Inherits:
Object
  • Object
show all
Defined in:
lib/parser/parse_result.rb

Overview

Returned on successful parsing of the input token stream.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_treeObject 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.

Returns:

  • (Boolean)


10
11
12
# File 'lib/parser/parse_result.rb', line 10

def has_error? 
  false
end