| Related articles |
|---|
| Comments on the simple compiler ment compilers@ima.UUCP (1986-01-07) |
| Relay-Version: | version B 2.10.2 9/12/84; site mit-hermes.ARPA |
| Posting-Version: | Notesfiles $Revision: 1.6.2.16 $; site ima.UUCP |
| From: | compilers@ima.UUCP |
| Newsgroups: | mod.compilers |
| Date: | 7 Jan 86 02:54:00 GMT |
| Article-I.D.: | ima.136300017 |
| Posted: | Mon Jan 6 21:54:00 1986 |
| Date-Received: | 7 Jan 86 10:46:04 GMT |
| 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
Return to the
comp.compilers page.
Search the
comp.compilers archives again.