It's most likely your bug. Just add some debug prints in your grammar
and tokenizer to see what's going on.
See also: ParseTrace() in http://www.hwaci.com/sw/lemon/lemon.html
--- Téragone <[EMAIL PROTECTED]> wrote:
> I have a problem with a rule of a small calculator which accept variables :
>
> assignment(A) ::= VARIABLE(C) EQUAL expr(B).
>
> I can set variable with simple value or expression like :
> a=2
> b=2+3
>
> but when I try :
> c=a+b
>
> The result is put in variable b instead of c.
>
> Is it my bug or a Lemon bug ?
____________________________________________________________________________________
Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. See how.
http://overview.mail.yahoo.com/
-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------