Class: BELParser::Language::Semantics::SemanticAny

Inherits:
SemanticASTNode show all
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

#children, #hash, #type

Instance Method Summary collapse

Methods inherited from SemanticASTNode

#terminal?

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