public abstract class Eater
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Eater(java.lang.String s,
LineLocation lineLocation) |
|
Eater(StringLocated sl) |
Modifier and Type | Method and Description |
---|---|
protected void |
addIntoTokenStack(TokenStack tokenStack,
boolean stopAtColon) |
protected void |
addUpTo(char separator,
java.lang.StringBuilder sb) |
protected void |
addUpToLastLetterOrUnderscoreOrDigit(java.lang.StringBuilder sb) |
abstract void |
analyze(TContext context,
TMemory memory) |
protected void |
checkAndEatChar(char ch) |
protected void |
checkAndEatChar(java.lang.String s) |
protected java.lang.String |
eatAllToEnd() |
protected java.lang.String |
eatAndGetFunctionName() |
java.lang.String |
eatAndGetNumber() |
protected java.lang.String |
eatAndGetOptionalQuotedString() |
java.lang.String |
eatAndGetQuotedString() |
java.lang.String |
eatAndGetSpaces() |
protected java.lang.String |
eatAndGetVarname() |
protected TFunctionImpl |
eatDeclareFunction(TContext context,
TMemory memory,
boolean unquoted,
LineLocation location,
boolean allowNoParenthesis,
TFunctionType type) |
protected TFunctionImpl |
eatDeclareProcedure(TContext context,
TMemory memory,
boolean unquoted,
LineLocation location) |
protected TFunctionImpl |
eatDeclareReturnFunctionWithOptionalReturn(TContext context,
TMemory memory,
boolean unquoted,
LineLocation location) |
protected TValue |
eatExpression(TContext context,
TMemory memory) |
protected TValue |
eatExpressionStopAtColon(TContext context,
TMemory memory) |
char |
eatOneChar() |
protected TokenStack |
eatTokenStack() |
int |
getCurrentPosition() |
LineLocation |
getLineLocation() |
protected boolean |
hasNextChar() |
protected void |
optionallyEatChar(char ch) |
char |
peekChar() |
char |
peekCharN2() |
protected boolean |
safeCheckAndEatChar(char ch) |
void |
skipSpaces() |
protected void |
skipUntilChar(char ch) |
public Eater(StringLocated sl)
protected Eater(java.lang.String s, LineLocation lineLocation)
public final LineLocation getLineLocation()
public abstract void analyze(TContext context, TMemory memory) throws EaterException, EaterExceptionLocated
EaterException
EaterExceptionLocated
public int getCurrentPosition()
protected final java.lang.String eatAllToEnd() throws EaterException
EaterException
protected final TValue eatExpression(TContext context, TMemory memory) throws EaterException, EaterExceptionLocated
EaterException
EaterExceptionLocated
protected final TokenStack eatTokenStack() throws EaterException
EaterException
protected final TValue eatExpressionStopAtColon(TContext context, TMemory memory) throws EaterException, EaterExceptionLocated
EaterException
EaterExceptionLocated
protected final void addIntoTokenStack(TokenStack tokenStack, boolean stopAtColon) throws EaterException
EaterException
public final java.lang.String eatAndGetQuotedString() throws EaterException
EaterException
protected final java.lang.String eatAndGetOptionalQuotedString() throws EaterException
EaterException
public final java.lang.String eatAndGetNumber() throws EaterException
EaterException
public final java.lang.String eatAndGetSpaces() throws EaterException
EaterException
protected final java.lang.String eatAndGetVarname() throws EaterException
EaterException
protected final java.lang.String eatAndGetFunctionName() throws EaterException
EaterException
public final void skipSpaces()
protected final void skipUntilChar(char ch)
public final char peekChar()
public final char peekCharN2()
protected final boolean hasNextChar()
public final char eatOneChar()
protected final void checkAndEatChar(char ch) throws EaterException
EaterException
protected final boolean safeCheckAndEatChar(char ch) throws EaterException
EaterException
protected final void optionallyEatChar(char ch) throws EaterException
EaterException
protected final void checkAndEatChar(java.lang.String s) throws EaterException
EaterException
protected final void addUpToLastLetterOrUnderscoreOrDigit(java.lang.StringBuilder sb)
protected final void addUpTo(char separator, java.lang.StringBuilder sb)
protected final TFunctionImpl eatDeclareFunction(TContext context, TMemory memory, boolean unquoted, LineLocation location, boolean allowNoParenthesis, TFunctionType type) throws EaterException, EaterExceptionLocated
EaterException
EaterExceptionLocated
protected final TFunctionImpl eatDeclareReturnFunctionWithOptionalReturn(TContext context, TMemory memory, boolean unquoted, LineLocation location) throws EaterException, EaterExceptionLocated
EaterException
EaterExceptionLocated
protected final TFunctionImpl eatDeclareProcedure(TContext context, TMemory memory, boolean unquoted, LineLocation location) throws EaterException, EaterExceptionLocated
EaterException
EaterExceptionLocated
Copyright © 2020. All Rights Reserved.