Re: ANSI C grammar without shift-reduce conflict on 'ELSE'
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Sun, 09 Dec 2007 15:32:36 -0800
Rares GalaN wrote:
I'm trying to use the ANSI C Grammar from
http://www.lysator.liu.se/c/ANSI-C-grammar-y.html and I'm getting a
"shift - reduce on ELSE" error. I'm quite new with this, so it would
really be useful if I could get a grammar that's conflict free. Any
suggestions will help.
The C grammar is not conflict free. I thought shift-reduce was
a warning in yacc.
-- glen
[It is indeed a warning, but it also warns you that the generated
parser doesn't quite parse the input grammar. -John]
.
- Follow-Ups:
- Re: ANSI C grammar without shift-reduce conflict on 'ELSE'
- From: Anton Ertl
- Re: ANSI C grammar without shift-reduce conflict on 'ELSE'
- References:
- ANSI C grammar without shift-reduce conflict on 'ELSE'
- From: Rares GalaN
- ANSI C grammar without shift-reduce conflict on 'ELSE'
- Prev by Date: Implementing Thompson's construction
- Next by Date: Re: Graph colouring and local register allocation
- Previous by thread: Re: ANSI C grammar without shift-reduce conflict on 'ELSE'
- Next by thread: Re: ANSI C grammar without shift-reduce conflict on 'ELSE'
- Index(es):
Relevant Pages
|
|