Package net.hydromatic.morel
Class Main
java.lang.Object
net.hydromatic.morel.Main
Standard ML REPL.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classReader that snoops which characters have been read and saves them in a buffer untilMain.BufferingReader.flush()is called.(package private) static classShell (or sub-shell created vianet.hydromatic.morel.compile.BuiltIn#INTERACT_USE) that can execute commands and handle errors.(package private) static classShell that is created via thenet.hydromatic.morel.compile.BuiltIn#INTERACT_USE) command. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean(package private) final booleanprivate final BufferedReaderprivate final PrintWriter(package private) final Session(package private) final TypeSystemprivate final Map<String, ForeignValue> -
Constructor Summary
ConstructorsConstructorDescriptionMain(List<String> args, InputStream in, PrintStream out, Map<String, ForeignValue> valueMap, Map<Prop, Object> propMap, boolean idempotent) Creates a Main.Main(List<String> argList, Reader in, Writer out, Map<String, ForeignValue> valueMap, Map<Prop, Object> propMap, boolean idempotent) Creates a Main. -
Method Summary
Modifier and TypeMethodDescriptionprivate static BufferedReaderprivate static PrintWriterstatic voidCommand-line entry point.private static intmin(int... ints) Returns the minimum non-negative value of the list, or -1 if all are negative.private static voidvoidrun()private static ReaderstripOutLines(Reader in)
-
Field Details
-
in
-
out
-
echo
private final boolean echo -
valueMap
-
typeSystem
-
idempotent
final boolean idempotent -
session
-
-
Constructor Details
-
Main
public Main(List<String> args, InputStream in, PrintStream out, Map<String, ForeignValue> valueMap, Map<Prop, Object> propMap, boolean idempotent) Creates a Main. -
Main
public Main(List<String> argList, Reader in, Writer out, Map<String, ForeignValue> valueMap, Map<Prop, Object> propMap, boolean idempotent) Creates a Main.
-
-
Method Details
-
main
Command-line entry point.- Parameters:
args- Command-line arguments
-
readerToString
-
stripOutLines
-
min
private static int min(int... ints) Returns the minimum non-negative value of the list, or -1 if all are negative. -
buffer
-
buffer
-
run
public void run()
-