Re: shift-reduce conflict,

dgay@barnowl.CS.Berkeley.EDU (David Gay)
15 Mar 1998 00:27:07 -0500

          From comp.compilers

Related articles
shift-reduce conflict, ttnguyen@eecs.uic.edu (Thinh T. Nguyen) (1998-03-07)
Re: shift-reduce conflict, kers@hplb.hpl.hp.com (1998-03-13)
Re: shift-reduce conflict, dgay@barnowl.CS.Berkeley.EDU (1998-03-15)
Re: shift-reduce conflict, kers@hplb.hpl.hp.com (1998-03-18)
| List of all articles for this month |
From: dgay@barnowl.CS.Berkeley.EDU (David Gay)
Newsgroups: comp.compilers
Date: 15 Mar 1998 00:27:07 -0500
Organization: University of California, Berkeley
References: 98-03-070 98-03-120
Keywords: yacc, parse, comment

kers@hplb.hpl.hp.com (Chris Dollin) writes:
      Can you make Bison happy by allowing


              '(' <expression> ')' <expression>


      as legal syntax, and then requiring that the prefix-expression denote
      a type? Off the top of my head, this should be OK, shouldn't make
      error reporting any more confusing, and even allows for future expansion
      of the language in the direction of type-expressions :-)


Consider (a) - b. Is this a cast of -b, or a-b ?
--
David Gay - Yet Another Starving Grad Student
dgay@cs.berkeley.edu
[In C++ you have to be prepared to parse quite a long way and back up if
you guessed wrong. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.