Greg Stark <stark@mit.edu> writes:
> Instead of collapsing WITH TIME and WITH ORDINALITY into a single
> token why don't we just modify the WITH token to WITH_FOLLOWED_BY_TIME
> and WITH_FOLLOWED_BY_ORDINALITY but still keep the following token.
> Then we can just include those two tokens everywhere we include WITH.
> Basically we would be giving the parser a free extra token of
> lookahead whenever it gets WITH.
> I think that's isomorphic to what Tom suggested but requires less
> surgery on the parser and automatically covers any other cases we
> don't need to track down.
I suspect it's likely to come out about the same either way once you
account for all the uses of WITH. Might be worth trying both to see
which seems less ugly.
regards, tom lane