|
Project Information
Members
Links
|
About CalculateCalculate is a Mac OS X widget for evaluating math expressions. It uses JavaScript with some modifications (like ^ for pow and ! for factorial). Users can define their own variables and functions. Variables and functions are persistently stored. How it worksCalculate has a custom ANTLR grammar similar to JavaScript, but with the following changes:
After parsing the input to a grammar tree, ECMAScript3ExtEmitter.js converts the tree to standard JavaScript source code, and Calc.js executes it using eval(). |