Wanted: advice on writing compiler in Perl!

andyd@aimla.com (Andy Duncan)
14 May 1996 20:20:59 -0400

          From comp.compilers

Related articles
Wanted: advice on writing compiler in Perl! andyd@aimla.com (1996-05-14)
Re: Wanted: advice on writing compiler in Perl! bnm@indica.bbt.com (1996-05-19)
Re: Wanted: advice on writing compiler in Perl! trulsson@Minsk.docs.uu.se (1996-05-21)
Re: Wanted: advice on writing compiler in Perl! edward@nsrc.nus.sg (1996-05-24)
| List of all articles for this month |
From: andyd@aimla.com (Andy Duncan)
Newsgroups: comp.lang.perl.misc,comp.compilers
Date: 14 May 1996 20:20:59 -0400
Organization: Philip Media
Keywords: design, question

I'm thinking of porting a compiler for a local scripting language.
The desire to have it run on MacOS/Unix/Win3.1/Win95/god knows what
else suggests rewriting it in Perl. It needs virtually no user
interface. I've used Perl 4.x for years and know it quite well, but
have little experience with Perl 5. Oh I've read the documentation,
but knowing what a construct _does_ isn't quite the same as knowing
what it's _good_ for!


If anybody has good design patterns to share for doing parsing and
tree-traversal in Perl I'd certainly appreciate a reference. Let me
learn from your mistakes -- or better yet, your successes. FWIW the
compiler as it stands right now is recursive-descent, and I don't
expect that to change.


Andrew Duncan
Advanced Development
Philips Media
aduncan@aimla.com
--


Post a followup to this message

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