Sha256: 57ba5c384e1e37506a170060c3955f072d8e1ecd9c1005cf4e08481279e0f93c
Contents?: true
Size: 416 Bytes
Versions: 9
Compression:
Stored size: 416 Bytes
Contents
require 'hilbert/lexer/tokens' module Hilbert module Parser module FuncParser include Base include Lexer::Tokens 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 end end
Version data entries
9 entries across 9 versions & 1 rubygems