Sha256: 51d33275808412e3711aa011445ec3a8983f98cd5c515d5fa7d2d4b8b9e37a0e
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 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 =~ /(#{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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qlang-0.0.27182000 | lib/qlang/parser/func_parser.rb |