Sha256: 57ba5c384e1e37506a170060c3955f072d8e1ecd9c1005cf4e08481279e0f93c

Contents?: true

Size: 416 Bytes

Versions: 9

Compression:

Stored size: 416 Bytes

Contents

require 'hilbert/lexer/tokens'
module Hilbert
  module Parser
    module FuncParser
      include Base
      include Lexer::Tokens
      def execute(els)
        def_func, formula = els[0], els[1]
        def_func =~ /(#{USER_FUNC})#{LPRN}#{ANYSP}(#{VARS_BY_CMA})#{ANYSP}#{RPRN}/
        FuncApi.execute($1, $2.split(' *,'), FormulaParser.execute(formula))
      end
      module_function :execute
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hilbert-0.0.2700420 lib/hilbert/parser/func_parser.rb
hilbert-0.0.2700410 lib/hilbert/parser/func_parser.rb
hilbert-0.0.2700400 lib/hilbert/parser/func_parser.rb
hilbert-0.0.2700320 lib/hilbert/parser/func_parser.rb
hilbert-0.0.2700300 lib/hilbert/parser/func_parser.rb
hilbert-0.0.2700210 lib/hilbert/parser/func_parser.rb
hilbert-0.0.2700110 lib/hilbert/parser/func_parser.rb
hilbert-0.0.2700100 lib/hilbert/parser/func_parser.rb
hilbert-0.0.2700001 lib/hilbert/parser/func_parser.rb