If anyone knows how I can do this, please let me know.
I'm writing a grammar that will interact with certain portions of a page in the browser. Every time I try to make any change, however, I have to first update the grammar, then the parser, then test the results. How can I automate the parser generation process, so I never have to worry about that, and it'll always use the most up-to-date grammar (because it will be created at runtime). I know it's possible, because I've seen online editors for pegjs, but I wasn't able to glean any information from those sites on how to do this.
If anyone knows how I can do this, please let me know.
--
You received this message because you are subscribed to the Google Groups "PEG.js: Parser Generator for JavaScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pegjs+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I tried the following:
<script src="grammar.txt" type="text/plain" id="parser-source-code"/>
but when I tried to parse something with that, I got an error because window.parser is undefined. Is my syntax incorrect, or is this impossible?