class EEEval::MathFuncResolver

Defined in:

eval/math_func_resolver.cr

Class Method Summary

Macro Summary

Class Method Detail

def self.evaluate(expression) #

[View source]
def self.resolve(expression) #

Transform an expression with math function if the argument is a number e.g.: cos(3) is translated to Math.cos(3)


[View source]
def self.resolve_expr(expression) #

Transform an expression inside a math function e.g.: cos(3+1) matches in (3+1) then (3+1) is evauated to 4 and the expression is translated to Math.cos(4)


[View source]
def self.resolved?(expression) #

[View source]
def self.search_expr(expression) #

[View source]

Macro Detail

macro mfunc_evaluator #

[View source]