cgajs
cgajs copied to clipboard
A javascript parser, processor and visualiser for the ESRI CGA Grammar language
This is a JavaScript implementation of the parser, processor and visualiser for the CGA Shape Grammar language.
For demo and docs see: https://gromgull.github.io/cgajs/
Built with:
- ThreeJS for visualiation
- PegJS for parsing
Development
- Install dependencies with yarn/npm
- Install webpack and pegjs
- create a symlink to
src/cga.jsinnode_modules, so we can import it withrequire('cga')(I guess a better way exists). pegjs -d cga src/cgaparser.pegjswill regenerate the parser.webpackbuildsbuild/bundle.js- I can't get
webpack --watchto work, and I don't know why, butdev.shusesentrto watch the files and trigger the rebuild.