Re: adding stuff to parser, question - Mailing list pgsql-hackers

From Grzegorz Jaskiewicz
Subject Re: adding stuff to parser, question
Date
Msg-id E21B8D87-7E3D-4951-AC4D-2263B04DC367@pointblue.com.pl
Whole thread Raw
In response to Re: adding stuff to parser, question  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
On 31 Jan 2009, at 17:17, Gregory Stark wrote:

> Grzegorz Jaskiewicz <gj@pointblue.com.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 :)



pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: adding stuff to parser, question
Next
From: Grzegorz Jaskiewicz
Date:
Subject: Re: adding stuff to parser, question