put in a reduce with lookahead functionality which one would use to write lookahead lexers and parsers