Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> writes:
> It occurs to me then that I could just then use FloatOnly in the grammar
I don't think so, unless you are proposing something very odd in the
lexer to force it to treat an integer literal as a float in this one
context.
What is the problem with following the lead of the existing code?
regards, tom lane