lib/qlang/parser/func_parser.rb in qlang-0.0.27182000 vs lib/qlang/parser/func_parser.rb in qlang-0.0.27182100
- old
+ new
@@ -2,11 +2,11 @@
module Qlang
module Parser
module FuncParser
include Base
include Lexer::Tokens
- def execute(string)
- def_func, formula = string.split(/ *= */)
+ 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