Sha256: 333f8c42259f38fe893f93758d7eac3570eb06a23d1c4392ab035826a239c820

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

module Qlang
  module Parser
    module FuncParser
      include Base
      def execute(lexed)
        lexed.fix_r_txt!
        fdef_ary = lexed[0][:FDEF].split('')
        func_name = fdef_ary.shift
        args = fdef_ary.join.rms!('(', ')', ',', ' ').split('')

        FuncApi.execute(func_name, args, FormulaParser.execute(lexed[-1][:FOML]))
      end
      module_function :execute
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qlang-0.0.14142135 lib/qlang/parser/func_parser.rb
qlang-0.0.1414213 lib/qlang/parser/func_parser.rb