home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.hackers
- 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
- From: pc123@cus.cam.ac.uk (Pete Chown)
- Subject: Re: Inside Macintosh
- In-Reply-To: 9999sc01@uhdvx3.dt.uh.edu's message of Fri, 13 Nov 1992 05:37:00 GMT
- Message-ID: <PC123.92Nov13195754@apus.cus.cam.ac.uk>
- Sender: news@infodev.cam.ac.uk (USENET news)
- Nntp-Posting-Host: apus.cus.cam.ac.uk
- Organization: U of Cambridge, England
- References: <wa-hackersU2NA550pp@clarinet.com> <6pq1n6h@rpi.edu>
- <1992Nov13.034403.4191@tc.cornell.edu>
- <mrhoten.721632407@Xenon.Stanford.EDU>
- <13NOV199200372518@uhdvx3.dt.uh.edu>
- Date: Fri, 13 Nov 1992 19:57:58 GMT
- Approved: owner-alt-newsgroup-creators-dork-dork-dork@dale.chu.cam.ac.uk
- Lines: 40
-
- In article <13NOV199200372518@uhdvx3.dt.uh.edu> 9999sc01@uhdvx3.dt.uh.edu (Alexandre Khalil) writes:
-
- [ stuff about mounting lights on a copy of Inside Macintosh deleted ]
-
- I don't know about the hardback book, but I could sure use the Inside
- Macintoshs.
- Would you mind exchanging those for an equivalent weight of phone
- directories ? I will most readily pay for the mailing of the Mac
- documentation.
-
- I thought this was alt.hackers, and now we have people posting about
- Macintoshes...
-
- If anyone's got a copy of the Power User's Guide to Wordperfect please
- would they exchange it for a copy of the Cambridge telephone directory
- (it's much more useful apart form anything). :-) :-)
-
- ObHack: I recently had a good idea - why not write my parser in C++?
- Then each node of the parse tree inherits a class called "node", and
- knows how to flatten itself. So then after the tree is generated,
- instead of having to traverse the tree with a recursive procedure
- containing a humungous great case statement to deal with each class of
- node, I just tell the first node to flatten itself. Then it flattens
- its descendants, because it needs to do that in order to flatten
- itself.
-
- Unfortunately flex doesn't allow you to specify any code to be
- included right at the beginning of the generated lexical analyser.
- This is a problem since C++ expects prototypes for everything... so my
- Makefile now contains:
-
- echo '#include "compile.h"' >lang.lex.c
- cat lex.yy.c >>lang.lex.c
- rm -f lex.yy.c
-
- which is an ugly enough hack I am sure...
- --
- ---------------------------------------------+ "A tight hat can be stretched.
- Pete Chown, pc123@phx.cam.ac.uk (Internet) | First damp the head with steam
- pc123@uk.ac.cam.phx (Janet :-) -+ from a boiling kettle."
-