public class CommandLineMachine extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Memory |
memory |
protected xyz.cofe.text.Output |
output |
| Constructor and Description |
|---|
CommandLineMachine() |
| Modifier and Type | Method and Description |
|---|---|
Lexer |
createLexer() |
Parser |
createParser() |
Parser |
createParser(Boolean trace) |
xyz.cofe.text.Output |
getDumpOutput() |
String |
getHelp() |
Memory |
getMemory() |
xyz.cofe.text.Output |
getOutput() |
boolean |
isDump() |
void |
loadCommands() |
static void |
loadCommands(Memory memory,
xyz.cofe.text.Output output) |
static void |
loadCommands(Memory memory,
xyz.cofe.text.Output output,
CommandLineMachine cli) |
void |
loadCommands(Object commands) |
static void |
registerCommands(Memory memory,
xyz.cofe.text.Output output,
CommandLineMachine cli,
Object commands) |
void |
setDump(boolean dump) |
void |
setDumpOutput(xyz.cofe.text.Output dumpOutput) |
void |
setMemory(Memory memory) |
InteractiveShell |
shell() |
Object |
start(xyz.cofe.collection.Pointer<xyz.cofe.text.parser.Token> toks) |
Object |
start(String script) |
Object |
start(String[] args) |
protected xyz.cofe.text.Output output
protected Memory memory
public void loadCommands()
public static void loadCommands(Memory memory, xyz.cofe.text.Output output, CommandLineMachine cli)
public static void loadCommands(Memory memory, xyz.cofe.text.Output output)
public void loadCommands(Object commands)
public static void registerCommands(Memory memory, xyz.cofe.text.Output output, CommandLineMachine cli, Object commands)
public xyz.cofe.text.Output getOutput()
public Memory getMemory()
public void setMemory(Memory memory)
public boolean isDump()
public void setDump(boolean dump)
public xyz.cofe.text.Output getDumpOutput()
public void setDumpOutput(xyz.cofe.text.Output dumpOutput)
public Parser createParser()
public Lexer createLexer()
public Object start(xyz.cofe.collection.Pointer<xyz.cofe.text.parser.Token> toks)
public InteractiveShell shell()
public String getHelp()
Copyright © 2017. All rights reserved.