Sha256: eb9cc4e1ea299bc47ad65e744634aa0d712ad009237f68899fa77637ccbdd80b

Contents?: true

Size: 383 Bytes

Versions: 5

Compression:

Stored size: 383 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, lexed[-1][:OTHER])
      end
      module_function :execute
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
qlang-0.0.14142 lib/qlang/parser/func_parser.rb
qlang-0.0.1414 lib/qlang/parser/func_parser.rb
qlang-0.0.141 lib/qlang/parser/func_parser.rb
qlang-0.0.14 lib/qlang/parser/func_parser.rb
qlang-0.0.1 lib/qlang/parser/func_parser.rb