WillowJS:Node.js中的表达式解析器和计算器
WillowJS Udacity测验使用的数学表达式解析器/评估器/显示引擎。如果你希望能够运行命令、测试或构建库(基本上除了在浏览器中使用它们之外的任何其他东西),你需要安装。你可能还想跑sudo npm install ###运行命令如果要从命令行使用库,请运行类似node src/nodeWrapper.js simplify newline '2-x^2-3x-5x^2y+frac{4x}{3}-6'有关可用命令的文档,请参阅文件本身。 ###Uglify(缩小/混淆)代码要创建js文件的丑化(缩小)版本(即在网站上使用),请运行以下命令: grunt这会将文件的丑化版本转储到build/文件夹中。 ###测试####Tests run with node.js要运行测试(从基本目录),请执行jasmine-node tests ##
WillowJS-master.zip
预估大小:19个文件
WillowJS-master
文件夹
Gruntfile.js
626B
src
文件夹
display.js
14KB
.DS_Store
6KB
fractionUtils.js
12KB
evaluation.js
69KB
parser.js
17KB
operator.js
15KB
expression.js
4KB
53.8KB
文件大小:
评论区