Module: BELParser::Language::Semantics::SemanticsFunction

Overview

SemanticsFunction provides a #map function that maps a Parsers::AST::Node to one or more semantics results.

Class Method Summary collapse

Class Method Details

.map(_term_ast, _spec, _namespaces) ⇒ Object

This method is abstract.

Include BELParser::Language::Semantics::SemanticsFunction and override #map to check

term semantics (e.g. signatures).

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/bel_parser/language/semantics_function.rb', line 10

def self.map(_term_ast, _spec, _namespaces)
  raise NotImplementedError, "#{__method__} is not implemented."
end