Re: help with bison - Mailing list pgsql-hackers

From Tom Lane
Subject Re: help with bison
Date
Msg-id 26691.1018495448@sss.pgh.pa.us
Whole thread Raw
In response to Re: help with bison  (Bear Giles <bgiles@coyotesong.com>)
Responses Re: help with bison  (Bear Giles <bgiles@coyotesong.com>)
List pgsql-hackers
Bear Giles <bgiles@coyotesong.com> writes:
> As an aside, is there any reason to treat TEMP and TEMPORARY as two
> separate identifiers?

Yes: if the lexer folds them together then unreserved_keyword can't
regenerate the equivalent name properly.  (Possibly this could be fixed
by making the lexer pass the input string as the value of a keyword
token, but I've not looked at details.)

You might be right that the grammar could benefit from some refactoring,
though I'm not at all sure if that really helps from an
execution-efficiency (number of states) standpoint.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: Re: help with bison
Next
From: Bear Giles
Date:
Subject: Re: help with bison