import org.hava.engine.*; /** A simple demonstration of the Hava API. */ public class HelloWorld { public static void main(String[] args) { try { // Create an engine to do the work. HEngine e = new HEngine(); // Load a Hava program. e.load("token HELLO, WORLD;"); e.load("x = (HELLO, WORLD);"); // Run the Hava program e.run(); // Find the value of x HReference i = e.createReference("x"); HValue v = i.getValue(); // Print it! System.out.println(v); } catch (HException x) { x.printStackTrace(); } } }