Files
DiceCloud/app/imports/parser
Stefan Zermatten feffa45cf7 Began work on rewriting parser without object orientation
Parsing is expensive, if the parse tree can be stored on the DB it can 
save a lot of compute time, but mongo can't store Classes, so we 
re-write without classes
2021-10-01 13:41:22 +02:00
..
2021-02-24 11:57:40 +02:00
2021-02-03 09:33:00 +02:00
2021-02-03 09:33:00 +02:00
2020-09-18 14:00:29 +02:00

The grammer.js file is built separately from the rest of the build process to rebuild the grammar after changing grammar.ne:

make sure Nearley in installed

npm install -g nearley

compile

nearleyc grammar.ne -o grammar.js

To make this happen as part of the build process, a Meteor build plugin needs to created that can compile .ne files to .js and include them where ever they need to be imported.