Creating a scripting language

2020-03-18 08:45发布

问题:

Can somebody please guide me in the right direction of creating a scripting language that targets the WSH (Windows Scripting Host)?

I have googled for it, but there seem to be far fewer links related to this than when I originally searched for it a few months back.

THank you

回答1:

You should be able to find all necessary information about creating Windows Script engines on MSDN; other than that there seems to be no resources available (at least I couldn't find any). You can also take a look at some open-source engine implementations to get the idea of what your code should look like:

  • PHPScript
  • ActiveScriptRuby
  • Open Object Rexx

If you have any specific questions about implementing Windows Script interfaces, feel free to ask them here. Good luck!



回答2:

The product is now called "Windows Script Host". The MSDN documentation suggests that what you want is a Windows Script Engine, about which the documentation claims that you can create one for any programming language or environment—presumably including one you create yourself. Beyond that, the documentation is not terribly clear.



回答3:

Topic starter need to carefully read the script56.chm, which can be found on MSDN. This help file describes WSH engine specification.