On 31/01/2016 07:07, Tudor Girba wrote:
Would it be possible to provide an isolated case so that we can debug
this?
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
creating.
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
these problems
If that is not possible, did you try debugging with the PetitParser
Debugger?
Yes, but it does not simplify enough the process of debugging petit
parser rules in this case
I got lost
nicolas
Doru
> On Jan 30, 2016, at 11:52 PM, Nicolas Anquetil <Nicolas.Anquetil(a)inria.fr>
wrote:
>
>
> ---
> testWhatTheHeck
> 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:
> ---
> condition
> ^ expression
> ---
>
> Can anyone propose an explanation?
>
> [Notes:
> 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
>
> --
> Nicolas Anquetil
> RMod team -- Inria Lille
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev(a)list.inf.unibe.ch
>
https://www.list.inf.unibe.ch/listinfo/moose-dev
--
www.tudorgirba.com
www.feenk.com
"Yesterday is a fact.
Tomorrow is a possibility.
Today is a challenge."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev
--
Nicolas Anquetil
RMod team -- Inria Lille