help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Stopping as soon as a valid symbol is read


From: John P. Hartmann
Subject: Fwd: Stopping as soon as a valid symbol is read
Date: Mon, 25 Jul 2011 14:09:37 +0200

From: Ludovic Courtès <address@hidden>
Date: 25 July 2011 12:14
Subject: Re: Stopping as soon as a valid symbol is read
To: "John P. Hartmann" <address@hidden>


"John P. Hartmann" <address@hidden> skribis:

> Is a+b an expression?  You don't know until you see something that is
> not an operator, it might be a+b+c.  Only the scanner can tell.

Good point.

My mental representation was that the parser should be able to recognize
‘& foo [ bar + 2 ]’ or ‘(a + b)’ as a single expression, whereas for
‘a + b’ it should stop after ‘a’.

Thanks for pointing this out!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]