My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 16: Feature request: allow simple comments in grammar files
1 person starred this issue and may be notified of changes. Back to list
 
Reported by rodrigo.moraes, Jul 23, 2011
Heya,
This should be pretty straightforward to implement: allow simple comments in .gzl grammar files. They can be really simple -- lines starting with a # mark them to be ignored by the parser:

# Hello, Gazelle!
hello -> "(" hello ")" | .digits=/[0-9]+/;


Jul 23, 2011
#1 rodrigo.moraes
Ooops, sorry for the noise.

Comments are obviously supported, I was just unaware of the syntax:

https://github.com/haberman/gazelle/blob/master/sketches/mongrel.gzl



Powered by Google Project Hosting