SQLite Forum

lemon - optional namespace support
Login
Hi Larry,

> After all, either MyNamespace:: or MYNAMESPACE_ can be token-pasted onto the beginning of names with quite similar effect.

...

> The prefix pasting idea is admittedly untested.

Token pasting of names works partly but with some issues.

- Cannot have `%name my::name::` without upsetting Lemon itself.

- Defining `my::name::ParseFree` directly will fail since it would need to be _declared_ first within a `namespace my { namespace name { ... } }' before it can be define.  Defining it directly will not compile.

In the meantime, I have looked over another response for Richard.