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_sexp
Constructor Details
#initialize(type, children = [], **properties) ⇒ SemanticASTNode
Returns a new instance of SemanticASTNode.
177 178 179 |
# File 'lib/bel_parser/language/semantics_ast.rb', line 177 def initialize(type, children = [], **properties) super(type, children, properties) end |
Instance Method Details
#terminal? ⇒ Boolean
181 182 183 |
# File 'lib/bel_parser/language/semantics_ast.rb', line 181 def terminal? false end |