On 30 Sep 2007, at 08:15, Akim Demaille wrote:

(1) %prefix=abc renames function yylex to "abclex"
    instead of putting it in namespace abc.

Well, that was on purpose, to match the lex interface.
I'm unsure it is wise to invite the scanner into the
parser's namespace: we might have to deal with unwanted
collisions.

I think that if Flex puts the lexer function into the namespace, Bison should do likewise, in view of the policy that Bison should be synced with Flex. If there are no C name conflicts, there should be no in C++, as the C++ namespace construct is essentially a language formalization of the C name-space programming technique.

  Hans Aberg




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

Reply via email to