home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c++
- Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!nuscc!arthur
- From: arthur@solomon.technet.sg (Arthur Sombrito)
- Subject: ARM grammar error?
- Message-ID: <1992Nov11.092221.19750@nuscc.nus.sg>
- Sender: usenet@nuscc.nus.sg
- Organization: National University of Singapore
- X-Newsreader: TIN [version 1.1 PL6]
- Date: Wed, 11 Nov 1992 09:22:21 GMT
- Lines: 11
-
-
- ARM grammar states that an assignment-expression IS
- unary-expression assignment-operator assignment-expression
-
- However I see a lot of commercial code (such as USL library) wherein
- an assignment to a cast-expression is done. Since a cast-expression
- cannot reduce to a unary-expression, my parser gets a syntax error
- on the "=" operator. So shouldn't assignment-expression be
- cast-expression assignment-operator assignment-expression
-
- Thanks for any replies.
-