Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.6.2.16 $; site ima.UUCP Path: utzoo!decvax!cca!ima!compilers From: compilers@ima.UUCP Newsgroups: mod.compilers Subject: Comments on the simple compiler ment Message-ID: <136300017@ima.UUCP> Date: Mon, 6-Jan-86 21:54:00 EST Article-I.D.: ima.136300017 Posted: Mon Jan 6 21:54:00 1986 Date-Received: Wed, 8-Jan-86 02:19:14 EST Lines: 17 Approved: compilers@ima.uucp Nf-ID: #N:ima:136300017:000:583 Nf-From: ima!compilers Jan 6 21:54:00 1986 [from bowles at CBOSGD (Jeff Bowles)] "The first pass is about 33k in size, so it is rather large (and almost commentless...). Its all in C with a lex frontend. No YACC in it." Odds are good that, if you hand-crafted the lexical analyzer yourself, which takes little time for most languages where you "obviously" can tell where a token stops (unlike FORTRAN, in which DO 10 K = 1.2 has "DO10K" is the first token), you save a lot of space. "lex" is quite nice for the first cut, but it's a little too big a weapon to draw when first facing the opponent. Jeff Bowles Lisle, IL