From: | Michael Meskes <meskes(at)topsystem(dot)de> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org (PostgreSQL Hacker) |
Subject: | shift/reduce problem with ecpg |
Date: | 1998-04-20 13:21:51 |
Message-ID: | 199804201321.PAA32632@gauss.topsystem.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
gram.y says:
opt_indirection: ...
| '[' a_expr ']' opt_indirection
| '[' a_expr ':' a_expr ']' opt_indirection
...
IMO a_expr is exactly where I have to enter C variable support. That is I
add a new case to a_expr: named cinputvariable which among others might have
the following form:
cinputvariable: /* empty */
...
| ':' name ':' name
...
With the first name being the variable, the second being the the name of the
indicator variable. As you might expect this results in a shift/reduce
conflict since there is no way to decide whether the second name is the
indicator variable or a coloumn name.
Any idea how to solve this?
Michael
--
Dr. Michael Meskes, Project-Manager | topsystem Systemhaus GmbH
meskes(at)topsystem(dot)de | Europark A2, Adenauerstr. 20
meskes(at)debian(dot)org | 52146 Wuerselen
Go SF49ers! Go Rhein Fire! | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux! | Fax: (+49) 2405/4670-10
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Meskes | 1998-04-20 13:41:40 | Feature question |
Previous Message | Michael Meskes | 1998-04-20 12:38:34 | New features |