Module: BELParser::Language::Syntax

Defined in:
lib/bel_parser/language/syntax.rb,
lib/bel_parser/language/syntax_error.rb,
lib/bel_parser/language/syntax_result.rb,
lib/bel_parser/language/syntax_warning.rb,
lib/bel_parser/language/syntax_function.rb,
lib/bel_parser/language/syntax/invalid_function.rb,
lib/bel_parser/language/syntax/undefined_namespace.rb,
lib/bel_parser/language/syntax/invalid_relationship.rb,
lib/bel_parser/language/syntax/undefined_namespace_value.rb

Overview

Syntax module aggregates the generic SyntaxFunction implementations that apply to all BEL specifications.

Defined Under Namespace

Modules: SyntaxFunction Classes: InvalidFunction, InvalidFunctionSyntaxError, InvalidRelationship, InvalidRelationshipSyntaxError, SyntaxError, SyntaxResult, SyntaxWarning, UndefinedNamespace, UndefinedNamespaceError, UndefinedNamespaceValue, UndefinedNamespaceValueWarning, Valid

Class Method Summary collapse

Class Method Details

.syntax_functionsObject



11
12
13
14
15
16
17
18
# File 'lib/bel_parser/language/syntax.rb', line 11

def self.syntax_functions
  constants.collect do |symbol|
    const = const_get(symbol)
    const if
      const.respond_to?(:include?) &&
      const.include?(SyntaxFunction)
  end.compact
end