home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.compilers
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!eff!world!iecc!compilers-sender
- From: drw@euclid.mit.edu (Dale R. Worley)
- Subject: Re: Is this a new idea?
- Reply-To: drw@euclid.mit.edu (Dale R. Worley)
- Organization: MIT Dept. of Tetrapilotomy, Cambridge, MA, USA
- Date: Mon, 16 Nov 1992 22:24:28 GMT
- Approved: compilers@iecc.cambridge.ma.us
- Message-ID: <92-11-088@comp.compilers>
- References: <92-10-113@comp.compilers> <92-11-047@comp.compilers>
- Keywords: C, design
- Sender: compilers-sender@iecc.cambridge.ma.us
- Lines: 23
-
- clyde@hitech.com.au (Clyde Smith-Stubbs) writes:
- ...you can't parse code that contains references to such things as
- typedefs that occur earlier in the code, if the typedef is missing
- or in the middle of being edited....
-
- macrakis@osf.org (Stavros Macrakis) writes:
- This is a C-specific problem: a bug in the design of C's syntax. Most
- other languages don't commit such foolishness, except of course those
- with extensible syntax.
-
- Any language has this problem if it has tokens whose syntactic
- category can't be determined solely by the form of the token. In C's
- case, "identifier" tokens can be either identifiers or type-names. In
- Algol 68, "boldface words" can be either type names or operators.
- Almost any language with an extensible set of operators is going to
- run into this problem.
-
- Dale
-
- Dale Worley Dept. of Math., MIT drw@math.mit.edu
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-