[Top][All Lists]

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


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
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
would as before alter yy to <name2> (and when =<name2> is amiss, set yy to

Under C, if one should have some compatibility, I think that
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

reply via email to

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