> fragment POSTPROMOTE: '+'; > > PREPROMOTE > : '+' > ( (' '|'\t'|'\r'|'\n'|EOF) => /*epsilon*/ { $type = POSTPROMOTE; } )? > ; Thanks a lot. I am certainly going to try this out, although I don't really understand it ;-) I was browsing antlr wiki for some articles/tutorials about predicates. Do you know any? Regards, fbc