Feature Request: support comments in the .gzl grammar files

4 views
Skip to first unread message

Catherine Rodgers

unread,
Jul 9, 2008, 3:27:49 PM7/9/08
to gazelle-users
When I'm testing where an error is in my grammar file, I'd like to be
able to comment out the lines I suspect of being the problem. As it
is, I have to make a copy of the file and delete the possibly
offending lines.

It would also be nice to have comments to, well, comment :) a
complicated grammar.


--
Catherine

Joshua Haberman

unread,
Jul 10, 2008, 12:33:48 AM7/10/08
to gazell...@googlegroups.com
Yes, comments are definitely something that should be added.  I think the main thing keeping me from adding them is that I can't decide what their syntax should be.  I think the main contender is C++ style:

/* comment */
// comment

If I still like this in a few days, I'll add it to the code in Git.

Josh

Catherine Rodgers

unread,
Jul 10, 2008, 4:03:41 PM7/10/08
to gazell...@googlegroups.com
On Wed, Jul 9, 2008 at 9:33 PM, Joshua Haberman <jos...@reverberate.org> wrote:
> Yes, comments are definitely something that should be added. I think the
> main thing keeping me from adding them is that I can't decide what their
> syntax should be. I think the main contender is C++ style:
>
> /* comment */
> // comment

Those styles are pretty standard (as is "# comment"). Anything will
do, so long as comments are in some way supported. :)


--
Catherine

Joshua Haberman

unread,
Jul 15, 2008, 7:04:29 PM7/15/08
to gazelle-users
I added an issue for this:

http://code.google.com/p/gazelle/issues/detail?id=1

Congratuations -- this became issue #1! :)
Reply all
Reply to author
Forward
0 new messages