public final class SyntaxChecker extends Object implements SyntaxCheckerConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
SyntaxCheckerTokenManager |
token_source
Generated Token Manager.
|
AND, BASE1, BASE10, BASE11, BASE12, BASE13, BASE14, BASE15, BASE16, BASE17, BASE18, BASE19, BASE2, BASE20, BASE21, BASE22, BASE23, BASE24, BASE25, BASE26, BASE27, BASE28, BASE29, BASE3, BASE30, BASE31, BASE32, BASE33, BASE34, BASE35, BASE36, BASE4, BASE5, BASE6, BASE7, BASE8, BASE9, BINARY, BITNOT, BITWISE, CHAR, CIMP, CNIMP, COMMA, DECIMAL, DIV, EQ, EQV, FACTORIAL, FRACTION, FUNCTION, GEQ, GT, HEXADECIMAL, IDENTIFIER, IMP, LEFT_PAR, LEQ, LT, MINUS, MODULO, MULTIPLY, NAND, NEQ, NIMP, NOR, NOT, OCTAL, OR, PERCENTAGE, PLUS, POWER, RIGHT_PAR, SEMICOLON, TETRATION, UNIT, XOR| Constructor and Description |
|---|
SyntaxChecker(InputStream stream)
Constructor with InputStream.
|
SyntaxChecker(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
| Modifier and Type | Method and Description |
|---|---|
void |
argumentList() |
void |
binaryExpression() |
void |
checkSyntax() |
void |
expression() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
void |
identifier() |
void |
itemExpression() |
void |
start() |
void |
unaryLeftExpression() |
void |
unaryRigthExpression() |
public SyntaxCheckerTokenManager token_source
public Token token
public Token jj_nt
public SyntaxChecker(InputStream stream)
public SyntaxChecker(InputStream stream, String encoding)
public final void checkSyntax()
throws ParseException,
TokenMgrError
ParseExceptionTokenMgrErrorpublic final void start()
throws ParseException
ParseExceptionpublic final void expression()
throws ParseException
ParseExceptionpublic final void binaryExpression()
throws ParseException
ParseExceptionpublic final void unaryRigthExpression()
throws ParseException
ParseExceptionpublic final void unaryLeftExpression()
throws ParseException
ParseExceptionpublic final void itemExpression()
throws ParseException
ParseExceptionpublic final void argumentList()
throws ParseException
ParseExceptionpublic final void identifier()
throws ParseException
ParseExceptionpublic final Token getNextToken()
public ParseException generateParseException()