Re: --- Regexps, compilers etc., prog help ---

jmccarty@sun1307.spd.dsccc.com (Mike McCarty)
20 Feb 1997 00:20:07 -0500

          From comp.compilers

Related articles
--- Regexps, compilers etc., prog help --- sjain@a.chem.upenn.edu (1997-02-11)
Re: --- Regexps, compilers etc., prog help --- the_artful_parser@null.net (Quinn Tyler Jackson) (1997-02-16)
Re: --- Regexps, compilers etc., prog help --- pfox@lehman.com (Paul David Fox) (1997-02-16)
Re: --- Regexps, compilers etc., prog help --- jmccarty@sun1307.spd.dsccc.com (1997-02-20)
Re: --- Regexps, compilers etc., prog help --- nkramer@cs.cmu.edu (Nick Kramer) (1997-02-20)
Re: --- Regexps, compilers etc., prog help --- ok@cs.rmit.edu.au (1997-02-22)
Re: --- Regexps, compilers etc., prog help --- kanze@gabi-soft.fr (1997-03-14)
Re: --- Regexps, compilers etc., prog help --- the_artful_parser@null.net (1997-03-16)
Re: --- Regexps, compilers etc., prog help --- henry@zoo.toronto.edu (Henry Spencer) (1997-03-21)
Re: --- Regexps, compilers etc., prog help --- henry@zoo.toronto.edu (Henry Spencer) (1997-03-21)
| List of all articles for this month |

From: jmccarty@sun1307.spd.dsccc.com (Mike McCarty)
Newsgroups: comp.compilers
Date: 20 Feb 1997 00:20:07 -0500
Organization: DSC Communications Corporation
References: 97-02-072 97-02-093
Keywords: lex, comment

Hursh Jain wrote:
> I don't know too much theory and to be honest I don't want to get down
> into too much theoretical detail ( involving books on compilers etc. )


[need to read dragon book: snip]


Paul David Fox <pfox@lehman.com> wrote:
)As a newbie, the dragon book will look scary but just give it a light
)read so you can acquaint yourself with what you dont know. You dont have
)to learn it - just know what it contains - for reference.
)
)Go and pick up some real life source code, e.g. GNU grep and
)read the code.


ACK!!!! NO NO NO NO NO. That code is HORRIBLE! One of the routines in it
has a McCabe complexity over 2000.


DO NOT LOOK AT THAT CODE.


(IMHO, don't even USE that code - I [shudder] don't.)


Far better - get a copy of Holub's book "Crafting a Compiler in C". It
is an elementary level introduction to producing compilers which
includes the complete source for a small compiler.


Mike
--
[Holub's book, at least in the early printings, had a phenomenal number of
errors, ranging from typos to major misstatements of fact. Later printings
are supposed to be better. There was a long errata list posted to this group
a few years back. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.