Publisher review:com.wis.math.alg.Eval implements the behaviours of the Eval Class. Implements the behaviours of the Eval Class.
Provides methods for parsing string expression input, but is restricted to addition, subtraction, multiplication, division, and modulo operations. It supports parenthesized operation precedence as well as normal arithmetic precedence. Bitwise operations will be introduced to the class eventually.
Implementation of Eval class for mathematical expressions: ::= (( |-) ) ::= ((|/|%) ) ::= [ |-] ::= | ( addExpr ) | (exprList) ::= [Math.]( sin | cos | pow | sqrt | tan | atan | ...) ::= [(,)] ::= | usage:var inst:Eval = new Eval([stringExp]) Simple usage: var myEval:Eval = new Eval(); trace(myEval.init("2 3")); trace(myEval.init("2 (3100)")); trace(myEval.init("round(sin(2) random()1000)")); Advanced usage (without variables): var compiledExp:String = myEval.compile("round(sin(2) random()1000)"); for (var i:Number=0;i
com.wis.math.alg.Eval is a Flash script for Ad Management scripts design by Richard Wright.
It runs on following operating system: Windows / Mac OS.
Operating system:Windows / Mac OS