Re: %prefix with C++ namespaces

2007-09-29 Thread Akim Demaille
Le 29 sept. 07 à 04:06, Sebastian Pipping a écrit : 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. Well, that was on purpose, to match

Re: %prefix with C++ namespaces

2007-09-29 Thread Joel E. Denny
On Sat, 29 Sep 2007, Sebastian Pipping wrote: > 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. You can write: %name-prefix="abc::" %define "namesp

Re: %prefix with C++ namespaces

2007-09-29 Thread Hans Aberg
On 29 Sep 2007, at 04:06, Sebastian Pipping wrote: 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. You are right, it should be in a namespace, though I think i