Class: BELParser::Language::Semantics::SemanticAny
- Inherits:
-
SemanticASTNode
- Object
- AST::Node
- SemanticASTNode
- BELParser::Language::Semantics::SemanticAny
- Defined in:
- lib/bel_parser/language/semantics_ast.rb
Overview
AST node for Any is a semantic AST.
Instance Attribute Summary
Attributes inherited from AST::Node
Instance Method Summary collapse
-
#initialize(**properties) ⇒ SemanticAny
constructor
A new instance of SemanticAny.
- #match(parse_node, spec) ⇒ Object
Methods inherited from SemanticASTNode
Methods inherited from AST::Node
#==, #append, #concat, #dup, #eql?, #inspect, #to_a, #to_ast, #to_sexp, #updated
Constructor Details
#initialize(**properties) ⇒ SemanticAny
Returns a new instance of SemanticAny.
546 547 548 |
# File 'lib/bel_parser/language/semantics_ast.rb', line 546 def initialize(**properties) super(:any, [], properties) end |
Instance Method Details
#match(parse_node, spec) ⇒ Object
550 551 552 |
# File 'lib/bel_parser/language/semantics_ast.rb', line 550 def match(parse_node, spec) success(parse_node, spec) end |