Adding a Scripting Language

If you want to add a scripting language, begin by looking at the sources for the scripting module. Examine the class AbstractScriptType, from which you can make a subclass to create your own script type.

To make your scripting language work with the Scripting module:

  1. Write a public class, nameScriptType, that extends AbstractScriptType. The class should implement at least one default constructor (where you start your interpreter and register an extension) and one form of method eval (either a Reader or a String parameter). For an example of how to create such a class, see the source code for .
  2. Create a JAR file that contains either just the class you created or the entire interpreter and put the following lines of code in its manifest file:
     Name: package/nameScriptType.class
     OpenIDE-Module-Class: Service
    
    For an example using DynamicJava, see the manifest for the scripting module.
  3. Install your module (name.jar). If you have two JAR files (one with the original interpreter and one with just your class file), be sure to install both of them.

See also
Running a Script

Using Scripting Languages

Legal Notices