At 08:09 23/01/2008, Jim Idle wrote: > >But when you define using fragments, then you will quite >often make a function call in the lexer, rather than just >matching. True. Although the ANTLR compiler ought to peephole optimise that away. (It doesn't at the moment though, sadly. Still, the target compiler might.)