On Fri, 2010-10-29 at 09:24 +1100, Paul Nicholls wrote: > "Brian Winfrey" <bwcod...@gmail.com> wrote in > message news:aanlktinq5bgnulg05nyuizl8bpoxdenu3ofyuqhnp...@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_c...@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@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... _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal