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


"John P. Hartmann" <[email protected]> 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’.

_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to