home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / std / cplus / 1535 < prev    next >
Encoding:
Text File  |  1992-11-10  |  868 b   |  23 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!nuscc!arthur
  3. From: arthur@solomon.technet.sg (Arthur Sombrito)
  4. Subject: ARM grammar error?
  5. Message-ID: <1992Nov11.092221.19750@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:22:21 GMT
  10. Lines: 11
  11.  
  12.  
  13. ARM grammar states that an assignment-expression IS
  14.      unary-expression assignment-operator assignment-expression
  15.  
  16. However I see a lot of commercial code (such as USL library) wherein 
  17. an assignment to a cast-expression is done.  Since a cast-expression
  18. cannot reduce to a unary-expression, my parser gets a syntax error
  19. on the "=" operator.  So shouldn't assignment-expression be
  20.      cast-expression assignment-operator assignment-expression
  21.  
  22. Thanks for any replies.
  23.