bison-patches
[Top][All Lists]
Advanced

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

Re: RFC: Requiring the ending `;'


From: Akim Demaille
Subject: Re: RFC: Requiring the ending `;'
Date: 03 Mar 2002 23:38:10 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

>>>>> "Paul" == Paul Eggert <address@hidden> writes:

>> - know whether POSIX says something,

Paul> POSIX requires the ending ';'.  And for good reason: it allows
Paul> the Yacc grammar to be Yaccable.

Paul, my dear Paul, I think this is the first time I hear from your
POSIX mouth with that much pleasure :)


Paul> I've been using Yacc for over 25 years, and this is the first
Paul> that I'd noticed the semicolon is optional.

<orgasmic>Raaah!</orgasmic>

Paul> While we're on the subject of semicolon trivia, the original
Paul> Yacc paper says that you can put as many semicolons as you like
Paul> after a rule, e.g.:

Paul>   /* This grammar works with Yacc, but not with Bison.  */ %%
Paul> expr: 'x';;;;;;;

Paul> (And no, I don't think Bison should be modified to support
Paul> _that_.  :-)

That's too much for me in a single shot!  Lemme breath!  :)



reply via email to

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