> $type = xxx; Thanks for the very fast reaction! But isn't antlr3 $type = ... equivalent to $setType(...) from antlr2, and not $setToken(x)? I'm looking for something like the 'Heterogeneous Token Object Streams' (http://www.antlr2.org/doc/lexer.html) for antlr3.