jacol
Interface LispInterpreter
- All Known Implementing Classes:
- AsynchInterpreter, LispProcessor
- public interface LispInterpreter
This interface describes lisp interpreters, whether synchronous or asynchronous.
- Version:
- 0.20 beta
- Author:
- Jason Lowdermilk Email
Method Summary |
java.lang.String |
eval(java.lang.String lispCode)
Evaluate some lisp code. |
void |
exit()
Instruct JACOL to exit. |
eval
public java.lang.String eval(java.lang.String lispCode)
- Evaluate some lisp code. This may block depending on whether or not the interpreter is synchronous.
- Parameters:
lispCode
- a String representing a lisp statement.- Returns:
- if the lisp interpreter is synchronous, a String will be returned containing the response from
the lisp server. Otherwise null will be returned.
exit
public void exit()
- Instruct JACOL to exit. This should be the last thing called from the java program. If it is omitted,
JACOL will continue running since there are other threads. If System.exit() is called directly, the
lisp server will continue running as an orphaned process.