Sha256: f8a8efec6a99ea2229e5e32a6fcd0b24755b4e18cf42210f6cd9a2c9407e93a5
Contents?: true
Size: 1.94 KB
Versions: 6
Compression:
Stored size: 1.94 KB
Contents
require_relative '../../version2_0' require_relative '../../function' require_relative '../../signature' require_relative '../../semantics' module BELParser module Language module Version2_0 module Functions # Reactants: Denotes the reactants of a reaction class Reactants extend Function SHORT = :reactants LONG = :reactants RETURN_TYPE = BELParser::Language::Version2_0::ReturnTypes::Reactants DESCRIPTION = 'Denotes the reactants of a reaction'.freeze def self.short SHORT end def self.long LONG end def self.return_type RETURN_TYPE end def self.description DESCRIPTION end def self.signatures SIGNATURES end module Signatures class ReactantsSignature extend BELParser::Language::Signature private_class_method :new AST = BELParser::Language::Semantics::Builder.build do term( function( identifier( function_of(Reactants))), variadic_arguments( term( function( identifier( return_type_of(BELParser::Language::Version2_0::ReturnTypes::Abundance)))))) end private_constant :AST STRING_FORM = 'reactants(F:abundance...)reactants'.freeze private_constant :STRING_FORM def self.semantic_ast AST end def self.string_form STRING_FORM end end end SIGNATURES = Signatures.constants.map do |const| Signatures.const_get(const) end.freeze end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems