kawa

Class repl

Implemented Interfaces:
Named

public class repl
extends Procedure0or1

Start a "Read-Eval-Print-Loop" for the Kawa Scheme evaluator.

Field Summary

static String[]
commandLineArgArray
static FVector
commandLineArguments
static String
compilationTopname
static String
homeDirectory

Constructor Summary

repl(Language language)

Method Summary

Object
apply0()
Object
apply1(Object env)
static void
compileFiles(String[] args, int iArg, int maxArg)
static void
exitDecrement()
Work around an AWT bug, where AWT threads are non-daemon.
static void
exitIncrement()
See exitDecrement.
static void
getLanguage()
static void
getLanguageFromFilenameExtension(String name)
static void
main(args[] )
static void
printOption(PrintStream out, String option, String doc)
static void
printOptions(PrintStream out)
static int
processArgs(String[] args, int iArg, int maxArg)
static void
setArgs(String[] args, int arg_start)

Methods inherited from class gnu.mapping.Procedure0or1

apply0, apply1, apply2, apply3, apply4, applyN, numArgs

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation, toString

Methods inherited from class gnu.mapping.PropertySet

getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol

Field Details

commandLineArgArray

public static String[] commandLineArgArray

commandLineArguments

public static FVector commandLineArguments

compilationTopname

public static String compilationTopname

homeDirectory

public static String homeDirectory

Constructor Details

repl

public repl(Language language)

Method Details

apply0

public Object apply0()
Overrides:
apply0 in interface Procedure0or1

apply1

public Object apply1(Object env)
Overrides:
apply1 in interface Procedure0or1

compileFiles

public static void compileFiles(String[] args,
                                int iArg,
                                int maxArg)

exitDecrement

public static void exitDecrement()
Work around an AWT bug, where AWT threads are non-daemon. Thus if you start up AWT, the JVM will wait for the AWT to finish, even if there are no other non-daemon threads. So call exitIncrement() each time a Freme is created, and call exitDecrement() a Frame is closed.

exitIncrement

public static void exitIncrement()
See exitDecrement.

getLanguage

public static void getLanguage()

getLanguageFromFilenameExtension

public static void getLanguageFromFilenameExtension(String name)

main

public static void main(args[] )

printOption

public static void printOption(PrintStream out,
                               String option,
                               String doc)

printOptions

public static void printOptions(PrintStream out)

processArgs

public static int processArgs(String[] args,
                              int iArg,
                              int maxArg)

setArgs

public static void setArgs(String[] args,
                           int arg_start)