parametric-svg / js

[MOVED TO https://github.com/projectshaped/parametric-svg] A JavaScript implementation of parametric SVG
http://parametric-svg.js.org
MIT License
8 stars 1 forks source link

Use math.js #1

Closed tomek-he-him closed 9 years ago

tomek-he-him commented 9 years ago

http://mathjs.org/docs/expressions/syntax.html – this is the best formal spec for an arithmetic grammar I’ve found. A JS implementation is readily available and it’s much more robust than the current proof-of-concept eval-based code.

The thing is opt-in and extensible (http://mathjs.org/docs/custom_bundling.html). It’s easy to implement in other languages.

An open question remains: how extensible should parametric-svg.js be?

tomek-he-him commented 9 years ago

https://github.com/parametric-svg/-/tree/d7be8f275252640fcdcc24befdacb56427396156/packages/parametric-svg-parse already uses mathjs under the hood.