context-sensitive or goal-oriented lexing

Would be nice.