sisc
Class REPL

java.lang.Object
  extended by sisc.REPL

public class REPL
extends java.lang.Object

Entry point for the SISC Read Eval Print Loop. Responsible for command line parsing and invoking the REPL Scheme code


Nested Class Summary
static class REPL.SchemeSocketThread
           
 
Field Summary
 SchemeThread primordialThread
           
 
Constructor Summary
REPL(DynamicEnvironment dynenv, Procedure repl)
          Construct a new REPL which will invoke the given Scheme procedure as the REPL in the provided dynamic environment.
REPL(SchemeThread primordialThread)
           
 
Method Summary
static Procedure getCliProc(AppContext ctx)
           
 void go()
           
static void listen(AppContext ctx, java.net.ServerSocket ssocket)
           
static void main(java.lang.String[] argv)
           
static java.util.Map parseOpts(java.lang.String[] args)
           
static void printUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

primordialThread

public SchemeThread primordialThread
Constructor Detail

REPL

public REPL(DynamicEnvironment dynenv,
            Procedure repl)
Construct a new REPL which will invoke the given Scheme procedure as the REPL in the provided dynamic environment.

Parameters:
dynenv - The dynamic environment for the REPL
repl - The procedural entry-point of the REPL

REPL

public REPL(SchemeThread primordialThread)
Method Detail

go

public void go()

getCliProc

public static Procedure getCliProc(AppContext ctx)

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception

listen

public static void listen(AppContext ctx,
                          java.net.ServerSocket ssocket)
                   throws java.io.IOException
Throws:
java.io.IOException

printUsage

public static void printUsage()

parseOpts

public static java.util.Map parseOpts(java.lang.String[] args)