Looked at the IRC comments.  My gut feeling is that there is no need to 
mess with the grammar.  A well defined 'discard event should suffice and is 
probably not so hard to implement.  I do not believe that many people would 
want more that that, at least in the short run... Usually (real life from 
my experience), comments are used for documentation or commenting out 
unused pieces of code, so they do not really need to be examined, Maybe 
just spitted out as, well, comments.  In cases where comments are used as 
markers for pre-processor or post-processor or whatever, you probably want 
to step aside of the grammar anyway in order to deal with that 
pre-processor.
My intended use was a very specialized case of parsing Jet4 (A.K.A 
MS-Access) queries.  There is no CREATE VIEW clause in that language, so I 
thought about marking the name of the query in some comment and use that in 
building a schema like analysis.  Please do not tell me to add CREATE VIEW 
artificially, I want to intervene as less as possible with the original 
codebase.  Adding a standard comment:
-- QUERY NAME qryXYZ
at the beginning of the source code is the least intrusive thing I could 
think about.
ZA

On Thursday, January 8, 2015 at 3:14:52 PM UTC-5, Durand Jean-Damien wrote:
>
> Oups... copy/paste problems, sorry.
>
>
>>    - For comments on general, you might want to join the IRC channel 
>>    #marpa on irc.freenode.net, c.f. 
>>    https://groups.google.com/d/msg/marpa-parser/ZIZ003_GUig/3ti4II8HRrgJ
>>
>>
> Should read http://irclog.perlgeek.de/marpa/2015-01-08#i_9906680
>
>
>>    - For the particular "TOP 5" case, this is just a grammar extension 
>>    like GNU or MS did to the C language.
>>       - What about adding this explicitely to the grammar, then? If you 
>>       are ready to fork the repo on github, try, and confirm this is ok, I 
>> can 
>>       release that. Perhaps with a special flag... ?
>>       - From 
>>       https://groups.google.com/d/msg/marpa-parser/ZIZ003_GUig/3ti4II8HRrgJ
>>    
>> Should read http://www.w3schools.com/sql/sql_top.asp 
>

-- 
You received this message because you are subscribed to the Google Groups 
"marpa parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to