Sha256: 5b40b49df8c2c6fb92230f5b935ead2c55d142664a68dcb56cf7268300c5e7e6

Contents?: true

Size: 412 Bytes

Versions: 8

Compression:

Stored size: 412 Bytes

Contents

require 'qlang/lexer/tokens'
module Qlang
  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

8 entries across 8 versions & 2 rubygems

Version Path
hilbert-0.0.2700000 lib/qlang/parser/func_parser.rb
qlang-0.0.27182124 lib/qlang/parser/func_parser.rb
qlang-0.0.27182123 lib/qlang/parser/func_parser.rb
qlang-0.0.27182122 lib/qlang/parser/func_parser.rb
qlang-0.0.27182121 lib/qlang/parser/func_parser.rb
qlang-0.0.27182120 lib/qlang/parser/func_parser.rb
qlang-0.0.27182110 lib/qlang/parser/func_parser.rb
qlang-0.0.27182100 lib/qlang/parser/func_parser.rb