|parse last line email@example.com (Aaron Wohl) (1995-02-17)|
|Re: parse last line firstname.lastname@example.org (Zerksis D. Umrigar) (1995-02-21)|
|Re: parse last line email@example.com (1995-02-21)|
|Date:||Tue, 21 Feb 1995 18:50:52 GMT|
> How do folks handle parsing the last line of input?
> I am using lex/yacc for a new compiler for an obscure basic dialect
> that up until now has only been interpreted. It is fairly common
> for the basic programs to not have and end of line character on the
> last line. My grammar looks like:
Change your grammar to make EOL a statement separator instead of a
| stmtlist EOL stmt
Return to the
Search the comp.compilers archives again.