[antlr-interest] Threadsafe C parser

John Gunnarsson mailing.list.recipient at gmail.com
Sun Jan 6 14:26:47 PST 2008


Since C isn't object oriented, declarations in the grammar's member area is
static this is not a viable option to store data and build a thread safe
parser.
Could I store data per parser somehow?
Is this the place:
http://www.antlr.org/api/C/struct_a_n_t_l_r3___b_a_s_e___r_e_c_o_g_n_i_z_e_r__struct.html#d2f3309b604f5433e1480337b764c2da
ANTLR3_BASE_RECOGNIZER_struct::userp ?

If so, how can I reach it from within a grammar action?

//John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080106/efd94d0c/attachment.html 


More information about the antlr-interest mailing list