tonyday has asked for the wisdom of the Perl Monks concerning the following question:
But what a project to help discover what is possible with perl. At the very core of compilers/persers/lexical analysers is a problem in text manipulation (isn't it?). It would take some perl-like text (probably using a very restricted subset of perl functionality) and output some assembler-like text.
Can anyone give me some help getting started? Any module that may give me inspiration? - I couldn't find much. Should I maybe look at perl internals? How about starting with a "wrapped" Bison and going from there? I imagine I could get lost very quickly.
Also let me know if you think it a project not suited to perl. I'll still give it a go though - at least to understand why.
Thanks for your help.
tonyday
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl as a compiler
by merlyn (Sage) on Mar 14, 2001 at 11:56 UTC | |
|
Re: perl as a compiler
by Caillte (Friar) on Mar 14, 2001 at 15:21 UTC | |
by tonyday (Scribe) on Mar 15, 2001 at 09:30 UTC |