|writing a compiler... ltk_RE_MO_VE_@libero.it (Tommy) (2003-06-03)|
|Re: writing a compiler... firstname.lastname@example.org (Vasile Rotaru) (2003-06-05)|
|Re: writing a compiler... email@example.com (2003-06-05)|
|Re: writing a compiler... JeffKenton@attbi.com (Jeff Kenton) (2003-06-05)|
|Re: writing a compiler... cfc@shell01.TheWorld.com (Chris F Clark) (2003-06-05)|
|Re: writing a compiler... Steve_Lipscombe@amat.com (2003-06-08)|
|Re: writing a compiler... firstname.lastname@example.org (2003-06-20)|
|[2 later articles]|
|Date:||3 Jun 2003 00:45:00 -0400|
|Posted-Date:||03 Jun 2003 00:45:00 EDT|
I would like some advice on how to start learning and practicing the
"art" of writing compilers. I will review/study all the academical
material on compiler theory and so on (dragon book), but what I am
asking you is how to start with the practice....
While I am learning the theory I need to keep motivated by doing some
practice... As a result, I would love to write some very trivial
compilers while I am studying those couple of theoretical books...
I guess I am already able to write some very trivial compiler, but I
do not want to do it in the wrong way. I would therefore appreciate
some advice, some links, some trivial compilers to look at, some
books, some exercises and so on...
Finally, I would prefer not to use flex, yacc and bison (etc..), they
are wonderful tools, but... I want to start this for my own pleasure
and this means that I want to do all the job without using any
external tool. This is why good advices on how to start parsing (for
compilers), scanning, grammar etc.. are very appreciated as well!
I thank you very much in advance.
P.S. I forgot to mention... I am proficient in C and C++ so these are
the languages I prefer to use to write code. However, I understand and
I am able to "use" Pascal and Java too. (It seems as if all the
material out there is outdated and in Pascal-like languages, I would
like to write a Pascal compiler because Pascal is "formally defined"
and easy, but I would rather use C and not Pascal to do that. Still, I
definately do not want to write a C++ compiler, I guess I would be
spending the rest of my life trying to interpret the standard in the
Return to the
Search the comp.compilers archives again.