class BELParser::Language::Semantics::SemanticMatch
SemanticMatch
holds the results of an input AST
to semantic AST
match.
Attributes
input_node[R]
semantic_node[R]
Public Class Methods
new(success, input_node, semantic_node)
click to toggle source
# File lib/bel_parser/language/semantics_match.rb, line 8 def initialize(success, input_node, semantic_node) @success = success @input_node = input_node @semantic_node = semantic_node end
Public Instance Methods
failure?()
click to toggle source
# File lib/bel_parser/language/semantics_match.rb, line 18 def failure? !@success end
success?()
click to toggle source
# File lib/bel_parser/language/semantics_match.rb, line 14 def success? @success end
to_s()
click to toggle source
# File lib/bel_parser/language/semantics_match.rb, line 22 def to_s msg end