From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | rir <rirans(at)comcast(dot)net> |
Cc: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, pgsql-docs(at)lists(dot)postgresql(dot)org |
Subject: | Re: small patch |
Date: | 2021-10-09 21:42:34 |
Message-ID: | 251900.1633815754@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
rir <rirans(at)comcast(dot)net> writes:
> On Thu, Oct 07, 2021 at 04:24:16PM -0400, Tom Lane wrote:
>> BTW, as it stands, the diagram is ambiguous
>> because there are two ways to parse
>> FETCH cursor_name
>> ... is <direction> present but empty, or omitted altogether?
> I am confident you know what you mean, but I don't. At the _parsing_
> stage how is any distinction between emptiness and omission?
Bison certainly makes a distinction, because it would have two different
production paths it could follow if the actual grammar looked like this
(which it doesn't). It doesn't care whether the emitted parse tree
would be the same. Indeed, it would be possible for the two cases to
create different parse trees.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | rir | 2021-10-10 20:15:01 | Re: small patch |
Previous Message | rir | 2021-10-09 21:31:07 | Re: small patch |