[fpc-pascal] Re: Re: TPLY
David Riley
dmfnr1 at gmail.com
Fri Oct 29 12:26:07 CEST 2010
On Fri, 2010-10-29 at 09:24 +1100, Paul Nicholls wrote:
> "Brian Winfrey" <bwcode4u at gmail.com> wrote in
> message news:AANLkTinQ5BGnuLg05NYuizL8bPoxDeNu3oFYUqHNPagK at mail.gmail.com...
> Thank you, What techiniques have you used in the past that you could
> share to get me started?
>
> On Wed, Oct 27, 2010 at 8:04 PM, leledumbo
> <leledumbo_cool at yahoo.co.id> wrote:
> >
> > Learn compilation technique, a recursive descent parser should be easy to
> > understand and code instead of learning automatic lexer and parser
> > generator. Plus, structurally, Java is a very simple language, so AST
> > transformation should be easy. With FPC 2.5.1, almost all Java constructs
> > can be directly translated to FPC dialect, minus anonymous inner class
> > only
> > AFAIK.
>
> I would start with this site to learn how to create recursive descent
> parsers using Pascal :)
>
> http://compilers.iecc.com/crenshaw/
>
> Using this information as a starting point, I have created pascal-like
> script languages (compiled to byte code), and pascal-like HL language
> compiled to virtual machine ML instructions :)
>
> cheers,
> Paul
>
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
A book I'd recommend reading in addition to the Dr. Jack Crenshaw
articles mentioned above would be "Compiler Construction" by Niklaus
Wirth. It's goes in to a lot more detail than "Let's Build A Compiler"
but still start with the basics. I found it here:
www-old.oberon.ethz.ch/WirthPubl/CBEAll.pdf . Mr. (Dr. yet?) Florian
Klaempfl should write a book, he seems to have done pretty good with the
whole Pascal compiler thing. With the entire FPC crew you'd each only
have to write a few chapters...
More information about the fpc-pascal
mailing list