[antlr-interest] ANTLR v3: enum as identifier and as a keyword

Bryan Ewbank ewbank at gmail.com
Fri Jul 1 08:56:37 PDT 2005


Nope; there's nothing provided that does symbol tables or scopes
automatically, though there's been discussions a while back on this
list.

For me, I use (C++ language) a vector<> of map<> structures from the
standard template library.  I'm sure there are similar beasts in java.

On 7/1/05, Tarun Khanna <tarunkhanna at gmail.com> wrote:
> Is there a general solution for implementing symbol tables in ANTLR,
> or do I have to define some sort of a hash table to achieve that.
>
> ...
> And is there a way to handle scope also provided in ANTLR itself.
>  
> I had a gut feeling that since ANTLR provides so much functionality, there
> would be some way of handling the symbol tables also.


More information about the antlr-interest mailing list