home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 16083 < prev    next >
Encoding:
Text File  |  1992-11-11  |  918 b   |  28 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!spool.mu.edu!yale.edu!jvnc.net!nuscc!arthur
  3. From: arthur@solomon.technet.sg (Arthur Sombrito)
  4. Subject: ARM grammar error?
  5. Message-ID: <1992Nov11.092910.20654@nuscc.nus.sg>
  6. Sender: usenet@nuscc.nus.sg
  7. Organization: National University of Singapore
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. Date: Wed, 11 Nov 1992 09:29:10 GMT
  10. Lines: 16
  11.  
  12.  
  13.  
  14.  
  15. ARM grammar states that an assignment-expression IS
  16.      unary-expression assignment-operator assignment-expression
  17.  
  18. However I see a lot of commercial code (such as USL library) wherein 
  19. an assignment to a cast-expression is done.  Since a cast-expression
  20. cannot reduce to a unary-expression, my parser gets a syntax error
  21. on the "=" operator.  So shouldn't assignment-expression be
  22.      cast-expression assignment-operator assignment-expression
  23.  
  24. Thanks for any replies.
  25.  
  26.  
  27.  
  28.