Comments in grammar files
See original GitHub issueI like the simplicity of tsPEG very much. What would be helpful for me to develop bigger grammars and to not lose track is the possibility to add comments in .gram files.
Could you please add some kind of comment syntax (e. g. #
or //
), at least for single lines or even multiple lines, which will simply be ignored by the parser generator? Would appreciate that very much 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Adding Comments to Antlr Java 8 grammar - Stack Overflow
I am wondering if there is a -simple- adjustment to the grammar that would allow this... (or if my naive idea of having...
Read more >comments in grammar files - Discussion - BMC Community
I am writing a grammar file to parse some asp code. the grammar file works fine on the areas in the file that...
Read more >3.1 Outline of a Bison Grammar - GNU.org
3.1 Outline of a Bison Grammar. A Bison grammar file has four main sections, shown here with the appropriate delimiters: %{ Prologue %}...
Read more >How are comments expressed in programming language ...
"They can appear alomost everywhere" is somewhat of a stretch. There are quite a few languages that only allow comments between statements. ·...
Read more >Line comment problem at end of file (antlr4) - Google Groups
we have not been able to end a file with line comment unless we included a line return. It looks like this issue...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will investigate
Thanks for the suggestion! Should have been added long ago. Added in commit 700dc8. Will update issue when released