[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: yacc compatibility bug
From: |
Paul Eggert |
Subject: |
Re: yacc compatibility bug |
Date: |
Wed, 02 Nov 2011 09:05:24 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
On 11/02/11 01:21, Vol Litwr wrote:
> It is much better to put generated
> code of yyparse to the end of text... Does it conflict with POSIX?
No, but reordering code has its own problems. It's
more intuitive to have the output in the same
order as the input. For example, suppose an action
defines a macro? If code is reordered, one can't
necessarily use the macro after defining it.
If you dislike define-before-use, then your real
problem is with C or C++, not with Bison.