PDA

View Full Version : Implenent a scripting engine tutorial :)



paul_nicholls
15-07-2009, 02:56 AM
Hi all,
I found this link today (thanks to a post Nitrogen's forum)

http://www.flipcode.com/archives/Implementing_A_Scripting_Engine-Part_1_Overview.shtml

Seems very handy! :)

cheers,
Paul

Brainer
15-07-2009, 03:29 AM
Nice share, Paul. :) Bookmarked. :)

But I don't think there's a need for anyone (of course unless for educational purposes) to write a scripting engine, because you can use Python or Lua, which both have their conversions to Pascal (or headers). Also, if you want to use Pascal as your scripting engine, you can use Pascal Script (http://www.remobjects.com/free), which is designed for Delphi as well as for FPC.

Nevertheless, it may be an interesting challenge to take. This (http://compilers.iecc.com/crenshaw/tutorfinal.pdf) tutorial is worth considering, too, if you want to dig into this. :)

paul_nicholls
15-07-2009, 05:09 AM
Still, one can learn a lot if they try to make their own language and compiler/interpreter :)

I used the crenshaw 'challenge' you mentioned when I made my scripting language a few years back LOL

cheers,
Paul

Brainer
15-07-2009, 05:22 AM
I used the crenshaw 'challenge' you mentioned when I made my scripting language a few years back LOL

Yep, AFAIK you were the one who showed me the link first. ;)