| Related articles |
|---|
| Shift/reduce conflict in Yacc C grammar hajnal@eik.bme.hu (HAJNAL Akos) (1998-01-11) |
| Re: Shift/reduce conflict in Yacc C grammar thetick@magelang.com (Scott Stanchfield) (1998-01-14) |
| Re: Shift/reduce conflict in Yacc C grammar clark@quarry.zk3.dec.com (Chris Clark USG) (1998-01-20) |
| Re: Shift/reduce conflict in Yacc C grammar Bronikov@inreach.com (Dmitri&Nina Bronnikov) (1998-01-21) |
| Re: Shift/reduce conflict in Yacc C grammar corbett@lupa.Eng.Sun.COM (1998-01-23) |
| Re: Shift/reduce conflict in Yacc C grammar khays@sequent.com (1998-01-23) |
| Re: Shift/reduce conflict in Yacc C grammar cfc@world.std.com (Chris F Clark) (1998-01-24) |
| [1 later articles] |
| From: | HAJNAL Akos <hajnal@eik.bme.hu> |
| Newsgroups: | comp.compilers |
| Date: | 11 Jan 1998 23:53:50 -0500 |
| Organization: | Technical University of Budapest |
| Keywords: | C, parse, yacc, question, comment |
Hi,
I downloaded the ANSI C grammar from
http://kbs.cs.tu-berlin.de/~jutta/c/ANSI-C-grammar-l.html,
http://kbs.cs.tu-berlin.de/~jutta/c/ANSI-C-grammar-y.html,
and compiled these in lex, and yacc.
The above grammar contains a shift/reduce conflict at
the definitions if-then, if-then-else.
For this reason I can not put actions within these rules,
i.e. for example after parsing the condition part.
My question is that, there is available a C grammar in lex/yacc
that does not contain any shift/reduce conflict?
Can such grammar exsist?
Thanks: Akos Hajnal
[I doubt you'll find any if-then-else constructs where yacc will let you
embed actions in any grammar. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.