Package | Description |
---|---|
org.botlibre.self |
Modifier and Type | Method and Description |
---|---|
void |
SelfCompiler.ensureNext(char expected,
char other,
TextStream stream)
Throw a parse error if the next character does not match what is expected.
|
void |
SelfCompiler.ensureNext(char expected,
TextStream stream)
Throw a parse error if the next character does not match what is expected.
|
void |
SelfCompiler.ensureNext(java.lang.String expected,
TextStream stream)
Throw a parse error if the next word does not match what is expected.
|
java.util.List<java.lang.String> |
SelfCompiler.getComments(TextStream stream) |
java.util.List<java.lang.String> |
Self4Compiler.getComments(TextStream stream) |
void |
SelfParseException.initFromStream(TextStream stream) |
static SelfParseException |
SelfParseException.invalidCharacter(char found,
char expected,
TextStream stream) |
static SelfParseException |
SelfParseException.invalidWord(java.lang.String found,
java.lang.String expected,
TextStream stream) |
void |
Self4Compiler.parseAnswer(Vertex state,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the quotient.
|
void |
Self4ByteCodeCompiler.parseAnswerByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the quotient.
|
Vertex |
SelfCompiler.parseCase(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the IF condition.
|
Vertex |
Self4Compiler.parseCase(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the CASE condition.
|
void |
SelfByteCodeCompiler.parseCaseByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the CASE condition.
|
void |
Self4ByteCodeCompiler.parseCaseByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the CASE condition.
|
void |
SelfByteCodeCompiler.parseDoByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the DO condition.
|
void |
Self4ByteCodeCompiler.parseDoByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the DO condition.
|
Vertex |
SelfCompiler.parseElement(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the reference to either a state, variable, equation, or raw data.
|
Vertex |
Self4Compiler.parseElement(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the reference to either a state, variable, expression, or data.
|
Vertex |
Self4Compiler.parseElement(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
Primitive lastBinary,
boolean debug,
Network network)
Parse the reference to either a state, variable, expression, or data.
|
Vertex |
Self4ByteCodeCompiler.parseElement(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
Primitive binary,
boolean debug,
Network network)
Override to catch expressions in templates, patterns, and other places.
|
void |
SelfByteCodeCompiler.parseElementByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the reference to either a state, variable, equation, or raw data.
|
Vertex |
Self4ByteCodeCompiler.parseElementByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the reference to either a state, variable, expression, or data.
|
Vertex |
Self4ByteCodeCompiler.parseElementByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
Primitive lastBinary,
boolean debug,
Network network)
Parse the reference to either a state, variable, expression, or data.
|
Vertex |
Self4Compiler.parseElementName(Primitive type,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the element name (state, function, variable)
|
Vertex |
SelfCompiler.parseEquation(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the equation.
|
Vertex |
SelfByteCodeCompiler.parseEquation(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the equation.
|
Vertex |
SelfCompiler.parseFormula(Vertex formula,
TextStream stream,
boolean debug,
Network network)
Parse the formula.
|
Vertex |
SelfCompiler.parseFormula(Vertex formula,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the formula.
|
Vertex |
Self4Compiler.parseFunction(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the function.
|
Vertex |
Self4ByteCodeCompiler.parseFunctionByteCode(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the function.
|
Vertex |
SelfCompiler.parseGoto(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the GOTO condition.
|
Vertex |
Self4Compiler.parseGoto(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the GOTO condition.
|
void |
SelfByteCodeCompiler.parseGotoByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the GOTO condition.
|
void |
Self4ByteCodeCompiler.parseGotoByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the GOTO condition.
|
Vertex |
SelfCompiler.parseOperator(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the operator.
|
Vertex |
Self4Compiler.parseOperator(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the operator.
|
void |
SelfByteCodeCompiler.parseOperatorByteCode(java.io.DataOutputStream dataStream,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the operator.
|
void |
Self4ByteCodeCompiler.parseOperatorByteCode(java.io.DataOutputStream dataStream,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the operator.
|
Vertex |
SelfCompiler.parsePattern(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PATTERN condition.
|
Vertex |
Self4Compiler.parsePattern(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PATTERN condition.
|
void |
SelfByteCodeCompiler.parsePatternByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PATTERN condition.
|
void |
Self4ByteCodeCompiler.parsePatternByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PATTERN condition.
|
Vertex |
SelfCompiler.parsePush(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PUSH condition.
|
Vertex |
Self4Compiler.parsePush(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PUSH condition.
|
void |
SelfByteCodeCompiler.parsePushByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PUSH condition.
|
void |
Self4ByteCodeCompiler.parsePushByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the PUSH condition.
|
void |
SelfCompiler.parseQuotient(Vertex state,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the quotient.
|
void |
SelfByteCodeCompiler.parseQuotientByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the quotient.
|
Vertex |
SelfCompiler.parseReturn(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the RETURN condition.
|
Vertex |
Self4Compiler.parseReturn(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the RETURN condition.
|
void |
SelfByteCodeCompiler.parseReturnByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the RETURN condition.
|
void |
Self4ByteCodeCompiler.parseReturnByteCode(TextStream stream,
java.io.DataOutputStream dataStream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the RETURN condition.
|
Vertex |
SelfCompiler.parseState(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the state and any referenced states or variables.
|
Vertex |
SelfByteCodeCompiler.parseState(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the state and any referenced states or variables.
|
Vertex |
Self4Compiler.parseState(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the state and any referenced states or variables.
|
Vertex |
Self4ByteCodeCompiler.parseState(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the state and any referenced states or variables.
|
Vertex |
SelfCompiler.parseTemplate(Vertex formula,
TextStream stream,
boolean debug,
Network network)
Parse the formula.
|
Vertex |
Self4Compiler.parseTemplate(Vertex formula,
TextStream stream,
boolean debug,
Network network)
Parse the template.
|
Vertex |
SelfCompiler.parseTemplate(Vertex formula,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the formula.
|
Vertex |
Self4Compiler.parseTemplate(Vertex formula,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the template.
|
Vertex |
Self4ByteCodeCompiler.parseTemplate(Vertex formula,
TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the template.
|
Vertex |
SelfCompiler.parseVariable(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the variable.
|
Vertex |
Self4Compiler.parseVariable(TextStream stream,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Vertex>> elements,
boolean debug,
Network network)
Parse the variable.
|
static SelfParseException |
SelfParseException.unexpectedEndOfFile(char expected,
TextStream stream) |
Constructor and Description |
---|
SelfParseException(java.lang.String message,
TextStream stream) |
SelfParseException(java.lang.String message,
TextStream stream,
java.lang.Throwable exception) |