[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: x + (y) + z
From: |
Derek M Jones |
Subject: |
Re: x + (y) + z |
Date: |
Mon, 07 Mar 2005 16:06:50 +0000 |
Frank,
>> >Have you looked at `%merge'?
>>
>> That option has the limits on its use as %dprec.
>
>Which limits exactly? I tried it with your original example
>`x + (y) + z' and it seems to work well (see attachment).
%dprec also works fine with the this, original, example.
The problem comes with '(x) + (y) + z' (which I gave as
a example on comment in this thread, rather than starting a
new thread; as if people were not confused enough).
There are four possible parses of this expression: two
of which are causing my current problem. The two
possible parse trees of interest are
+
/ \
(cast) z
/ \
x +
|
()
|
y
and
+
/ \
() (cast)
| / \
x y +
|
z
>If your grammar is different and it doesn't work for you, it might
>help to post the relevant parts of your actual grammar.
Your grammar contained a single %merge. I thought at
least two are required?
derek
--
Derek M Jones tel: +44 (0) 1252 520 667
Knowledge Software Ltd mailto:address@hidden
Applications Standards Conformance Testing http://www.knosof.co.uk
- Re: x + (y) + z, Hans Aberg, 2005/03/04
- Re: x + (y) + z, Hans Aberg, 2005/03/06
- Re: x + (y) + z, Hans Aberg, 2005/03/06
- Re: x + (y) + z, Derek M Jones, 2005/03/06
- Re: x + (y) + z, Frank Heckenbach, 2005/03/07
- Re: x + (y) + z, Derek M Jones, 2005/03/07
- Re: x + (y) + z, Frank Heckenbach, 2005/03/07
- Re: x + (y) + z,
Derek M Jones <=
- Re: x + (y) + z, Frank Heckenbach, 2005/03/07
- Re: x + (y) + z, Derek M Jones, 2005/03/08
- Re: x + (y) + z, Frank Heckenbach, 2005/03/09
- Ambiguity involving two parse stacks reducing on the same rule, Derek M Jones, 2005/03/09
Re: x + (y) + z, Hans Aberg, 2005/03/06
Re: x + (y) + z, Hans Aberg, 2005/03/07
Re: x + (y) + z, Hans Aberg, 2005/03/07
Re: x + (y) + z, Hans Aberg, 2005/03/07