Class: BELParser::Language::Semantics::SemanticASTNode

Inherits:
AST::Node
  • Object
show all
Defined in:
lib/bel_parser/language/semantics_ast.rb

Overview

SemanticASTNode represents a node in the semantic tree structure.

Instance Attribute Summary

Attributes inherited from AST::Node

#children, #hash, #type

Instance Method Summary collapse

Methods inherited from AST::Node

#==, #append, #concat, #dup, #eql?, #inspect, #to_a, #to_ast, #to_bel, #to_s, #to_sexp

Methods included from Parsers

#serialize

Constructor Details

#initialize(type, children = [], **properties) ⇒ SemanticASTNode

Returns a new instance of SemanticASTNode.



172
173
174
# File 'lib/bel_parser/language/semantics_ast.rb', line 172

def initialize(type, children = [], **properties)
  super(type, children, properties)
end

Instance Method Details

#terminal?Boolean

Returns:

  • (Boolean)


176
177
178
# File 'lib/bel_parser/language/semantics_ast.rb', line 176

def terminal?
  false
end