Package com.googlecode.aviator.lexer
Class ExpressionLexer
java.lang.Object
com.googlecode.aviator.lexer.ExpressionLexer
Expression Lexer,scan tokens from string
- Author:
- dennis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintstatic booleanisBinaryOP(char ch) booleanisValidHexChar(char ch) voidnextChar()voidprevChar()voidPush back tokenToken<?> scan()Token<?> scan(boolean analyse) voidsetLineNo(int lineNo)
-
Constructor Details
-
ExpressionLexer
-
-
Method Details
-
getSymbolTable
-
setLineNo
public void setLineNo(int lineNo) -
getLineNo
public int getLineNo() -
pushback
Push back token- Parameters:
token-
-
scan
-
nextChar
public void nextChar() -
prevChar
public void prevChar() -
isValidHexChar
public boolean isValidHexChar(char ch) -
getCurrentIndex
public int getCurrentIndex() -
scan
-
getScanString
-
isBinaryOP
public static boolean isBinaryOP(char ch)
-