Jean-Damien and I are now chatting on IRC about a Marpa::R2 extension that
might make it easier for him to allow comments, etc., in the AST, without
rewriting his grammar.

On Thu, Jan 8, 2015 at 5:56 AM, Zeev Atlas <[email protected]> wrote:

> Could they be discarded into some bucket with position and length
> associated and than I can access that bucket and deal with it ?  :)
> ZA
>
>
> On Thursday, January 8, 2015 12:52:10 AM UTC-5, Durand Jean-Damien wrote:
>
>> Zeev,
>>
>> Comments is an orthogonal rule, that have no place in the BNF except in
>> the discarded thing, and per def discarded things are not part of the final
>> AST.
>> In conclusion, this is not supported.
>>
>> Regards, Jean-Damien.
>>
>> Le jeudi 8 janvier 2015 04:11:32 UTC+1, Zeev Atlas a écrit :
>>>
>>> I had a chance to feed some SQL statements of varied complexity to
>>> MarpaX::Languages::SQL2003::AST.  I do not yet look into error
>>> capturing, so all the SQL statements that I use are absolutely valid.  My
>>> current task is to review and understand the produced XML.
>>> I've noticed that while the parser recognizes comments as such and
>>> correctly ignores them, it does not produce them in the XML output.  Would
>>> it be that hard to produce a valid XML comment:
>>> <!-- My comment within SQL statement -->
>>> Or is that already a supported option?
>>> Thanks
>>> ZA
>>>
>>  --
> 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.
>

-- 
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