E-mail: info@softwaretheories.com

The Samples

The following sample programs have been compiled using KES and a Java rule set (download here). For each sample you can look at the source file, the generated java code, and run the final application.

  1. Making sense of arbitrary English sentences in a context sensitive manner
  2. Adapting to how people express programs, both syntactically and structurally, rather than forcing people to think like a computer
  3. Making intelligent decisions for the user when information is lacking

Ready to Test Programs

Hello World

Source:
HelloWorld.kes
Output:
output.zip
Applet:
start applet
Info:
This classic sample shows how a ‘Hello World’ program is written in KES.

Button and Label
Source:
ButtonAndLabel.kes
Output:
output.zip
Applet:
start applet
Info:
A simple example that displays a button and a label, changing the label whenever the button is clicked. Shows how a KES program looks and the ambiguity with which objects can be specified.

Sentences
Source:
Sentences.kes
Output:
output.zip
Applet:
start applet
Info:
This example demonstrates the many different ways commands can be entered, demonstrating the power of KES's rule system.

Whenever Example
Source:
Whenever.kes
Output:
output.zip
Applet:
start applet
Info:
This demonstrates the implementation of the whenever paradigm, including 'whenever [event]', 'whenever [expression]', and 'whenever [variable] changes'.

Making Decisions - Adding a button
Source:
Decisions.kes
Output:
output.zip
Applet:
start applet
Info:
This example shows how KES can make decisions for the user. In this example, KES observes how new buttons are used. If the user created a button but never added the button to the window (anywhere in the program), KES does this for the user after creation. If the user does add the button anywhere in the program, KES leaves the button alone, allowing it to be hidden until shown.