Hi, An alternative approach is to create your own symbol table: http://www.antlr.org/wiki/display/CS652/Symbol+tables And to set pointers/references to symbol table nodes as appropriate in the tokens, in rule actions: http://www.antlr.org/pipermail/antlr-interest/2008-July/029365.html Regards, Mark --