home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / compiler / 1897 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.5 KB  |  38 lines

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