Sha256: ef830f57ba8d068cb14be488a4141cd49b6d486ffc1bf965847e4b71b6f01b23

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 Bytes

Contents

require 'qlang/lexer/tokens'
module Qlang
  module Parser
    module FuncParser
      include Base
      include Lexer::Tokens
      def execute(string)
        def_func, formula = string.split(/ *= */)
        def_func =~ %r@(#{FUNCV})#{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

4 entries across 4 versions & 1 rubygems

Version Path
qlang-0.0.27180000 lib/qlang/parser/func_parser.rb
qlang-0.0.27100000 lib/qlang/parser/func_parser.rb
qlang-0.0.27000000 lib/qlang/parser/func_parser.rb
qlang-0.0.27 lib/qlang/parser/func_parser.rb