| From: | Grzegorz Jaskiewicz <gj(at)pointblue(dot)com(dot)pl> |
|---|---|
| To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
| Cc: | pgsql-hackers Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: adding stuff to parser, question |
| Date: | 2009-01-31 17:23:18 |
| Message-ID: | E21B8D87-7E3D-4951-AC4D-2263B04DC367@pointblue.com.pl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 31 Jan 2009, at 17:17, Gregory Stark wrote:
> Grzegorz Jaskiewicz <gj(at)pointblue(dot)com(dot)pl> writes:
>
> You're going to kick yourself, but:
>
>
>> {"table", TABLE, RESERVED_KEYWORD},
>> + {"table", TABLES, RESERVED_KEYWORD},
>
> ^
>
> I don't see any reason offhand why it should have to be a reserved
> word
> though. You should be able to make it an UNRESERVED_KEYWORD. Oh, and
> you'll
> want to add it to the list of tokens in unreserved_keyword in gram.y
> as well.
I am really novice with parsers here, so - I felt like I have to do
it, in order to make it work. It just wasn't working without that bit
in keywords.c.
I shall try your way, thanks :)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Grzegorz Jaskiewicz | 2009-01-31 17:24:15 | Re: adding stuff to parser, question |
| Previous Message | David Fetter | 2009-01-31 17:22:16 | Re: adding stuff to parser, question |