|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectohmm.OHMMShell
public class OHMMShell
OHMM JScheme command shell.
This is a JScheme
interpreter for debug and exercise of the OHMM
host library. The
main(java.lang.String[])
method can be invoked in the usual Java way. In addition,
OHMMShell is specified as the main-class of OHMM.jar.
Communications are established according to command-line parameters:
OHMM
instance.
ohmm-shell-api.scm and ohmm-shell-extra.scm are loaded
to define the scheme-level API and conveniences.
Communication errors including timeouts are internally detected, and the
ErrorHandler
, if any, is notified.
Field Summary | |
---|---|
static java.lang.String |
BANNER
Startup banner. |
protected jscheme.JScheme |
js
Our JScheme interpreter. |
protected OHMM |
ohmm
Our OHMM. |
static java.lang.String |
OHMM_SHELL_API
The name of the scheme bindings for the api. |
static java.lang.String |
OHMM_SHELL_EXTRA
The name of the scheme bindings for the extra stuff. |
static java.lang.String |
PROMPT
Shell prompt. |
private static java.lang.String |
svnid
|
Constructor Summary | |
---|---|
OHMMShell(OHMM ohmm)
Make a new OHMMShell wrapping an OHMM instance. |
Method Summary | |
---|---|
static boolean |
charReady()
jscheme does not implement char-ready? |
protected void |
initJScheme()
Initialize JScheme. |
protected boolean |
loadJSchemeFileFromResource(java.lang.String resourceName)
Load a scheme file into js from a resource for this class. |
protected void |
loadJSchemeFiles()
load initial JScheme values |
static void |
main(java.lang.String[] argv)
Command line driver, see OHMM.USAGE . |
void |
readEvalPrintLoop()
readEvalPrintLoop(String) with default PROMPT |
void |
readEvalPrintLoop(java.lang.String prompt)
Run the scheme REPL. |
protected void |
setJSGlobals()
bind global JScheme values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String svnid
public static final java.lang.String PROMPT
Shell prompt.
public static final java.lang.String BANNER
Startup banner.
public static final java.lang.String OHMM_SHELL_API
The name of the scheme bindings for the api.
public static final java.lang.String OHMM_SHELL_EXTRA
The name of the scheme bindings for the extra stuff.
protected OHMM ohmm
Our OHMM.
protected jscheme.JScheme js
Our JScheme interpreter.
Constructor Detail |
---|
public OHMMShell(OHMM ohmm) throws java.io.IOException
OHMM
instance.
java.io.IOException
Method Detail |
---|
public static boolean charReady() throws java.io.IOException
java.io.IOException
public void readEvalPrintLoop(java.lang.String prompt)
public void readEvalPrintLoop()
readEvalPrintLoop(String)
with default PROMPT
protected void initJScheme() throws java.io.IOException
Initialize JScheme.
java.io.IOException
protected void setJSGlobals()
protected void loadJSchemeFiles()
protected boolean loadJSchemeFileFromResource(java.lang.String resourceName)
Load a scheme file into js
from a resource for this class.
resourceName
- the name of the resource (i.e. the name of a scheme
file in the same package as this class)
public static void main(java.lang.String[] argv) throws java.io.IOException
Command line driver, see OHMM.USAGE
.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |