[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Namespace-prefix
From: |
Hans Aberg |
Subject: |
Namespace-prefix |
Date: |
Mon, 14 Oct 2002 15:43:47 +0200 |
I am looking a bit at Bison 1.50 & C++:
I think that one might add an option
--namespace-prefix=<name1>
in addition to the --name-prefix already present. Under C++, this option,
if non-empty, would introduce a C++ namespace <name1> {...} construct.
But one may still want to use more than one parser within the same C++
namespace, so the option
--name-prefix=<name2>
would as before alter yy to <name2> (and when =<name2> is amiss, set yy to
empty).
Under C, if one should have some compatibility, I think that
--namespace-prefix=<name1>
if non-empty, might prefix <name1>_ to the yynames. For example, yyparser
would become <name1>_yyparser. This is not really essential, but it would
streamline C/C++.
Hans Aberg
- Namespace-prefix,
Hans Aberg <=