Re: Looking for scripting suggestions

jimbo@radiks.net (Jim Lawless)
2 Aug 2001 02:45:04 -0400

          From comp.compilers

Related articles
Looking for scripting suggestions ev@hysar.frmul.com (2001-07-30)
Re: Looking for scripting suggestions joachim_d@gmx.de (Joachim Durchholz) (2001-08-02)
Re: Looking for scripting suggestions erictetz@yahoo.com (Eric Tetz) (2001-08-02)
Re: Looking for scripting suggestions george.goffe@seagate.com (2001-08-02)
Re: Looking for scripting suggestions jimbo@radiks.net (2001-08-02)
Re: Looking for scripting suggestions joshualevy@yahoo.com (2001-08-02)
Re: Looking for scripting suggestions Ron@Profit-Master.com (Ron Pinkas) (2001-08-02)
Re: Looking for scripting suggestions plakal-nospam@nospam-cs.wisc.edu (Manoj Plakal) (2001-08-08)
Re: Looking for scripting suggestions fmfab@chez.com (Fabrice Medio) (2001-08-15)
Re: Looking for scripting suggestions gbs@k9haven.com (George B. Smith) (2001-08-24)
Re: Looking for scripting suggestions erictetz@yahoo.com (Eric Tetz) (2001-09-03)
| List of all articles for this month |

From: jimbo@radiks.net (Jim Lawless)
Newsgroups: comp.compilers
Date: 2 Aug 2001 02:45:04 -0400
Organization: Compilers Central
References: 01-07-166
Keywords: interpreter, comment
Posted-Date: 02 Aug 2001 02:45:03 EDT

On 30 Jul 2001 01:27:28 -0400, ev@hysar.frmul.com (Spam MeNot) wrote:


> So basically, if you were developing an application that could load
> different control pages (think of a web browser that loads different
> web pages) and you wanted to be able to embed simple
> control/validation scripting into the pages, what would you consider
> using for a language?


I might build in a simple stack-based RPN language with minimal
syntax. I have a core interpreter I use that I can throw in to
existing applications for simple scripting chores.


I've extracted this core into a sample interpreter:


http://www.radiks.net/~jimbo/stack.zip


This archive contains a stack interpreter win32.exe with C source and
three sample scripts. The commands are inlined in a big if-else
construct in the interp() function. A circular buffer is used to hold
temporary strings to avoid complex garbage-collection.


Jim Lawless
jimbo@radiks.net
http://www.radiks.net/~jimbo
[Sounds like forth. -John]


Post a followup to this message

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