views:

160

answers:

2

Hi All

I am trying to create a scripting language by myself (it doesn't have to be perfect - although that would be great if it was), mostly because i'm doing it for fun and to learn about how they're created etc.

According to the answer over here: http://stackoverflow.com/questions/2439929/creating-a-scripting-language what I'm supposed to be looking into is this: http://msdn.microsoft.com/en-us/library/xawadt95%28VS.85%29.aspx . But, I have absolutely no idea what that MSDN page is on about.

Can somebody please help?

P.S. Are there any free/open source scripting languages that target the Windows Script Host, that also have full source code available for it that I can play around with?

Thank you

+4  A: 
Norman Ramsey
Windows Script Host isn't a language, it's a script host. The standard script engines it supports are VBScript and JScript but there is a 3rd party Perl engine for it as well. What puzzles me though is why Windows Script Host is an issue one way or the other here. Normally you create a script engine that has an API allowing it to be embedded within any of a number of programs. That MSDN link points to a discussion of the API a Windows Script engine must support.
Bob Riemersma
@Bob: Indeed. It's just that if OP is having trouble following the MSDN link, then j-t-s is probably better off building something standalone and getting some experience before starting to wrestle with the API. I had a bit of trouble fighting my way through the API documentation myself, and I'm not a beginner...
Norman Ramsey
Thanks, Norman :)
lucifer
+5  A: 

I started writing a guide to how to implement your own language engine for Windows Script Host but I ran out of steam and never finished it.

http://blogs.msdn.com/ericlippert/archive/tags/SimpleScript/default.aspx

Eric Lippert
Scary. Not surprised you ran out of steam! But this was interestingi to look at; thanks. +1
Norman Ramsey
Thanks heaps for the link, sounds interesting! I'm 'bout to head over there now to check it out :-)
lucifer