Simkin for Java

Simkin is a lightweight scripting language that can be embedded within Java.

See:
          Description

Packages
simkin This package contains the Simkin interpreter and base classes.
simkin.examples.applet This package contains an example of Simkin running within an applet, and providing a means of creating a dialog box.
simkin.examples.array This package contains an example of a Simkin script using array index operators.
simkin.examples.dialog This package contains an example of using a Simkin script to show a dialog box.
simkin.examples.dynamic_treenode This package contains a simple Java application which shows how to create a global TreeNode which scripts can add arbitrary data to.
simkin.examples.helloworld This package contains a "Hello World" example in Simkin.
simkin.examples.helloworld_midp This package contains an example of MIDlet using Simkin
simkin.examples.inherits This package shows how you can support inheritance of methods and member variables using Simkin.
simkin.examples.person This package contains an example of a Simkin script calling into a Java class
simkin.examples.scriptloader This package contains a simple Java application which loads and runs an XML file.
simkin.examples.servlet This package contains an example of using Simkin within a servlet

 

Simkin is a lightweight scripting language that can be embedded within Java.

Simkin scripts communicate with Java objects directly through introspection, or via the Executable interface.

The package includes an implementations of the interface called XMLExecutable and ScriptedExecutable which allows you to embed Simkin script within XML or TreeNode files.

Here is an example of an XML file containing Simkin script:

<example>
<function name="find" params="string,character">
 //	call the built-in function length to find the length of the string
 length=length(string);	
 index=0;
 while (index<length){
  //	call the built-in function charAt to compare the nth character
  if (charAt(string,index)=character){	
    return index;
  }else{
    index=index+1;
  }
 }
 return -1;
</function>
</example>
For full information about syntax please see the Simkin Guide

The package is © 1996-2000 Simon Whiteside

More information can be found at the Simkin website.