On 31/01/2016 07:07, Tudor Girba wrote:
Would it be possible to provide an isolated case so that we can debug
the isolated test case is in the mail
for the grammar, I am afraid this will be difficult.
It is not my grammar but the postgres sql one that Anne and Olivier are
It is their first grammar and despite their best efforts, it shows
(without blaming anyone, we all know how difficult it can be to create a
full-fledged grammar, and frankly full postgres is proving far more
complex that I would have ever thought)
I am trying to rationalise and simplify their grammar to understand
If that is not possible, did you try debugging with the PetitParser
Yes, but it does not simplify enough the process of debugging petit
parser rules in this case
I got lost
> On Jan 30, 2016, at 11:52 PM, Nicolas Anquetil <Nicolas.Anquetil(a)inria.fr>
> self parse: 'true' rule: #condition.
> self parse: 'true)' rule: #condition.
> self parse: 'true' rule: #expression.
> self parse: 'true)' rule: #expression.
> First 3 tests pass, last one fails
> But the grammar says:
> ^ expression
> Can anyone propose an explanation?
> Yes I checked that I am testing the right grammar
> Yes the 'true)' test is strange, but this is precisely what I am trying to
debug (why does it pass for #condition ?)
> Nicolas Anquetil
> RMod team -- Inria Lille
> Moose-dev mailing list
"Yesterday is a fact.
Tomorrow is a possibility.
Today is a challenge."
Moose-dev mailing list
RMod team -- Inria Lille