Last change
on this file was
12721,
checked in by Mark Evenson, 14 years ago
|
Examples reorganization: move snippets to misc, adjust local READMEs.
|
File size:
410 bytes
|
Line | |
---|
1 | import org.armedbear.lisp.*; |
---|
2 | |
---|
3 | public class hello |
---|
4 | { |
---|
5 | public static void main(String[] args) |
---|
6 | { |
---|
7 | try |
---|
8 | { |
---|
9 | Interpreter interpreter = Interpreter.createInstance(); |
---|
10 | interpreter.eval("(format t \"Hello, world!~%\")"); |
---|
11 | } |
---|
12 | catch (Throwable t) |
---|
13 | { |
---|
14 | t.printStackTrace(); |
---|
15 | } |
---|
16 | } |
---|
17 | } |
---|
18 | |
---|
19 | // cd ~/j/examples |
---|
20 | // cp hello.java ../src |
---|
21 | // cd ../src |
---|
22 | // javac hello.java |
---|
23 | // java hello |
---|
Note: See
TracBrowser
for help on using the repository browser.