home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / hackers / 1678 < prev    next >
Encoding:
Text File  |  1992-11-14  |  2.5 KB  |  58 lines

  1. Newsgroups: alt.hackers
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!convex!news.utdallas.edu!corpgate!bnrgate!bnr.co.uk!pipex!warwick!pavo.csi.cam.ac.uk!camcus!pc123
  3. From: pc123@cus.cam.ac.uk (Pete Chown)
  4. Subject: Re: Inside Macintosh
  5. In-Reply-To: 9999sc01@uhdvx3.dt.uh.edu's message of Fri, 13 Nov 1992 05:37:00 GMT
  6. Message-ID: <PC123.92Nov13195754@apus.cus.cam.ac.uk>
  7. Sender: news@infodev.cam.ac.uk (USENET news)
  8. Nntp-Posting-Host: apus.cus.cam.ac.uk
  9. Organization: U of Cambridge, England
  10. References: <wa-hackersU2NA550pp@clarinet.com> <6pq1n6h@rpi.edu>
  11.     <1992Nov13.034403.4191@tc.cornell.edu>
  12.     <mrhoten.721632407@Xenon.Stanford.EDU>
  13.     <13NOV199200372518@uhdvx3.dt.uh.edu>
  14. Date: Fri, 13 Nov 1992 19:57:58 GMT
  15. Approved: owner-alt-newsgroup-creators-dork-dork-dork@dale.chu.cam.ac.uk
  16. Lines: 40
  17.  
  18. In article <13NOV199200372518@uhdvx3.dt.uh.edu> 9999sc01@uhdvx3.dt.uh.edu (Alexandre Khalil) writes:
  19.  
  20. [ stuff about mounting lights on a copy of Inside Macintosh deleted ]
  21.  
  22.      I don't know about the hardback book, but I could sure use the Inside
  23.    Macintoshs.
  24.      Would you mind exchanging those for an equivalent weight of phone 
  25.    directories ? I will most readily pay for the mailing of the Mac 
  26.    documentation.
  27.  
  28. I thought this was alt.hackers, and now we have people posting about
  29. Macintoshes...
  30.  
  31. If anyone's got a copy of the Power User's Guide to Wordperfect please
  32. would they exchange it for a copy of the Cambridge telephone directory
  33. (it's much more useful apart form anything).  :-) :-)
  34.  
  35. ObHack: I recently had a good idea - why not write my parser in C++?
  36. Then each node of the parse tree inherits a class called "node", and
  37. knows how to flatten itself.  So then after the tree is generated,
  38. instead of having to traverse the tree with a recursive procedure
  39. containing a humungous great case statement to deal with each class of
  40. node, I just tell the first node to flatten itself.  Then it flattens
  41. its descendants, because it needs to do that in order to flatten
  42. itself.
  43.  
  44. Unfortunately flex doesn't allow you to specify any code to be
  45. included right at the beginning of the generated lexical analyser.
  46. This is a problem since C++ expects prototypes for everything... so my
  47. Makefile now contains:
  48.  
  49. echo '#include "compile.h"' >lang.lex.c
  50. cat lex.yy.c >>lang.lex.c
  51. rm -f lex.yy.c
  52.  
  53. which is an ugly enough hack I am sure...
  54. --
  55. ---------------------------------------------+ "A tight hat can be stretched.
  56. Pete Chown, pc123@phx.cam.ac.uk (Internet)   |  First damp the head with steam
  57.             pc123@uk.ac.cam.phx (Janet :-)  -+  from a boiling kettle."
  58.