Hello,

I’m trying to parse a C expression from an input stream.  I’d like the
parser to stop as soon as a valid expression is read (or an error is
encountered).

However, the default behavior is to stop whenever a valid expression
/followed by the end-of-file marker/ is encountered.  Thus, if the input
stream contains a sequence of 2 or more expressions, the parser will
report an error because it’s expecting $end after the first expression.

Any idea how to achieve what I want?

Thanks,
Ludo’.


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

Reply via email to