[antlr-interest] some questions about C runtime

Jim Idle jimi at temporal-wave.com
Thu May 21 09:17:52 PDT 2009


Yurushkin Michael wrote:
> Good evening!
> I have IR, that was written in C++. But there is only C runtime.
>   
Just compile as C++, the code is c++ compilable.
> 1) How can I add  "namespaces block" in *.c file?
>   
add to @members {} and that shoudl work I think.
> 2) Is it possible to create some (e.g. 2) objects of ParserClass (or  
> LexerClass)? 
Yes, but you need to do it manually.
> Yacc, as I know, generates C code with global variables. So..  
> what about antlr?
>   
No global variables, it is all 100% thread safe.

Jim



More information about the antlr-interest mailing list