https://github.com/gromgull/cgajs
A javascript parser, processor and visualiser for the ESRI CGA Grammar language
https://github.com/gromgull/cgajs
cga parser shape-grammar threejs
Last synced: about 1 year ago
JSON representation
A javascript parser, processor and visualiser for the ESRI CGA Grammar language
- Host: GitHub
- URL: https://github.com/gromgull/cgajs
- Owner: gromgull
- License: apache-2.0
- Created: 2017-03-21T08:41:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T12:42:16.000Z (about 9 years ago)
- Last Synced: 2025-03-25T10:11:12.569Z (about 1 year ago)
- Topics: cga, parser, shape-grammar, threejs
- Language: JavaScript
- Size: 1.63 MB
- Stars: 33
- Watchers: 3
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
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.js` in `node_modules`, so we can import it with `require('cga')` (I guess a better way exists).
* `pegjs -d cga src/cgaparser.pegjs` will regenerate the parser.
* `webpack` builds `build/bundle.js`
* I can't get `webpack --watch` to work, and I don't know why, but `dev.sh` uses `entr` to watch the files and trigger the rebuild.