help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: x + (y) + z


From: Hans Aberg
Subject: Re: x + (y) + z
Date: Mon, 07 Mar 2005 18:51:17 +0100
User-agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6

At 16:06 +0000 2005/03/07, Derek M Jones wrote:
>Frank,
...
>Your grammar contained a single %merge.  I thought at
>least two are required?

I think that you should just merge together the tokens becoming
indistinguishable by your exclusion of context-information. You then get
certain reduce/reduce conflict. These can then be merged together using
%merge. If you need to keep track of the different parses somehow, encode
that in the merge function. This method, if it works, will be considerably
faster than using any more general nondeterministic parsing method that
keeps track of all the different parses without merging them.

  Hans Aberg






reply via email to

[Prev in Thread] Current Thread [Next in Thread]