parse tree --> running program/script...

Tom Fjellstrom <tomcf@connect.ab.ca>
20 Apr 2000 01:35:28 -0400

          From comp.compilers

Related articles
parse tree --> running program/script... tomcf@connect.ab.ca (Tom Fjellstrom) (2000-04-20)
Re: parse tree --> running program/script... Herwig.Huener@pgtm0035.mch.sni.de (Herwig Huener) (2000-04-21)
Re: parse tree --> running program/script... tomcf@connect.ab.ca (Tom Fjellstrom) (2000-04-26)
Re: parse tree --> running program/script... tomcf@connect.ab.ca (Tom Fjellstrom) (2000-04-26)
| List of all articles for this month |
From: Tom Fjellstrom <tomcf@connect.ab.ca>
Newsgroups: comp.compilers
Date: 20 Apr 2000 01:35:28 -0400
Organization: Compilers Central
Keywords: parse, interpreter, comment

I've been working on a simple 'perl like'* script language, and
everything is great so far (who knew writing a parser was so easy :),
but I'm having a little trouble trying to decide how to continue.


1) should I execute the parse tree directly?
2) or maybe implement some sort of virtual machine?


I figure 1 is slow and costly to re run a script, while 2 should be
much faster and robust. To me it seems 1 just doesn't feel right, but
2 sounds like a lot of work... I don't mind the work though, I'd just
need some information on how to implement it. (instruction set,
stack... et.al)


thanks.
Tom Fjellstrom


*p.s. It's not really all that perl like... maybe perl 2/3 :).
            theres no packages (yet) or regexs.
[Turning a parse tree into reverse polish tokens isn't very hard. -John]


Post a followup to this message

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