Expression parser: detect illegal token sequences.