How do I make ANTLR generate c++ code in a (nested) namespace?

Ric Klaren

Just specify the complete 'path' to the namespace in the namespace option. delimited by '::'.

e.g. namespace = "foo::bar";
would generate nested namespace calls for a namespace 'foo' and 'bar'.

Think this was included for antlr 2.7.1 (maybe 2.7.0) patch courtesy of David Wagner.
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact