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, will_match_partial = false) ⇒ Object
Methods inherited from SemanticASTNode
Methods inherited from AST::Node
#==, #append, #concat, #dup, #eql?, #inspect, #to_a, #to_ast, #to_bel, #to_s, #to_sexp, #updated
Methods included from Parsers
Constructor Details
#initialize(**properties) ⇒ SemanticAny
Returns a new instance of SemanticAny.
545 546 547 |
# File 'lib/bel_parser/language/semantics_ast.rb', line 545 def initialize(**properties) super(:any, [], properties) end |
Instance Method Details
#match(parse_node, spec, will_match_partial = false) ⇒ Object
549 550 551 |
# File 'lib/bel_parser/language/semantics_ast.rb', line 549 def match(parse_node, spec, will_match_partial = false) success(parse_node, spec) end |