home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- 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
- From: arthur@solomon.technet.sg (Arthur Sombrito)
- Subject: ARM grammar error?
- Message-ID: <1992Nov11.092910.20654@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:29:10 GMT
- Lines: 16
-
-
-
-
- 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.
-
-
-
-