Module: BELParser::Language::Semantics::SemanticsFunction
- Included in:
- DeeplyNestedStatement, FunctionDeprecation, ListFunctionSubject, MultipleSubjectObject, NonCausalNestedStatement, NonObjectList, RelationshipDeprecation, RelationshipNotListable, SignatureMapping
- Defined in:
- lib/bel_parser/language/semantics_function.rb
Overview
SemanticsFunction provides a #map function that maps a Parsers::AST::Node to one or more semantics results.
Class Method Summary collapse
-
.map(_term_ast, _spec, _namespaces) ⇒ Object
abstract
term semantics (e.g. signatures).
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).
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 |