breck7 / scrollsdk

Build on top of Scroll.
https://sdk.scroll.pub
379 stars 17 forks source link

https://jtree.treenotation.org/designer/ is really nice but how to play around with jtree on command line #152

Closed ghost closed 1 year ago

ghost commented 1 year ago

I am stuck trying to register , list and parse few sample prewritten grammers First i register a new grammar : pldb/node_modules/jtree/products/commandLineApp.node.js register database/grammar/primitives.grammar

Then make sure it shows up in the list of registered grammers: pldb/node_modules/jtree/products/commandLineApp.node.js list

And then i am struck trying to parse pldb grammer files pldb/node_modules/jtree/products/commandLineApp.node.js parse .defaultRoot does not seem to work

pldb/node_modules/jtree/products/commandLineApp.node.js parse .pldb does not seem to work either

Note: For some reason a dot needs to preceed the grammername provided in list output. Am i missing something ?

Note : The grammer files are from https://github.com/breck7/pldb/tree/main/database/grammar

breck7 commented 1 year ago

Great feedback @SRS-WRKS ! I've deleted the concept of registered grammars. That was way too complicated and not worth the setup costs.