Class: BELParser::Language::Semantics::SemanticASTNode
- Defined in:
- lib/bel_parser/language/semantics_ast.rb
Overview
SemanticASTNode represents a node in the semantic tree structure.
Direct Known Subclasses
SemanticAminoAcidOf, SemanticAny, SemanticArgument, SemanticCovalentProteinModificationOf, SemanticEncodingOf, SemanticFunction, SemanticFunctionOf, SemanticHasEncoding, SemanticHasNamespace, SemanticIdentifier, SemanticIsAminoAcidRange, SemanticIsNil, SemanticIsSequencePosition, SemanticNamespaceOf, SemanticParameter, SemanticPrefix, SemanticReturnTypeOf, SemanticStatement, SemanticTerm, SemanticValue, SemanticVariadicArguments
Instance Attribute Summary
Attributes inherited from AST::Node
Instance Method Summary collapse
-
#initialize(type, children = [], **properties) ⇒ SemanticASTNode
constructor
A new instance of SemanticASTNode.
- #terminal? ⇒ Boolean
Methods inherited from AST::Node
#==, #append, #concat, #dup, #eql?, #inspect, #to_a, #to_ast, #to_bel, #to_s, #to_sexp
Methods included from Parsers
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
176 177 178 |
# File 'lib/bel_parser/language/semantics_ast.rb', line 176 def terminal? false end |