help-bison
[Top][All Lists]
Advanced

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

%prefix with C++ namespaces


From: Sebastian Pipping
Subject: %prefix with C++ namespaces
Date: Sat, 29 Sep 2007 04:06:37 +0200
User-agent: Thunderbird 1.5.0.13 (X11/20070824)

Hello Bison people!


I noticed two things with %prefix when combined
with a C++ parser that might be bugs:


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

(2) Nested namespaces do not work:
    %prefix=abc::def should give

      namespace abc {
      namespace def {
        ..
      }
      }

    instead of

      namespace abc::def {
        ..
      }

    I guess?


Is this known and planned to fix?



Sebastian




reply via email to

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