|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
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 Simkin being used to construct a dynamic dialog with behaviour |
simkin.examples.helloworld | This package contains a very simple program using Simkin, which just displays "Hello World" |
simkin.examples.inherits | This package shows how you can extend the classes in the library to support the concept of inheritance of code and data. |
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 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.
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |