itec.minicompiler
Interface ConstantsInterface
- All Known Implementing Classes:
- ErrorHandler, FirstSet, FollowSet, Parser, Scanner, SimpleToken
- public interface ConstantsInterface
The ConstantsInterface
contains the constants used in all parts of
the compiler to ensure a better readability and understanding of the source code.
To avoid an accidential misuse all constants have different values (except some
values of error numbers which are equal to keywords).
The ranges for these values are:
- Version:
- 1.0 (29.09.2004)
- Author:
- Stefan Leitner, Stefan Schauer
KEYWORD
public static final int KEYWORD
- See Also:
- Constant Field Values
ARRAY
public static final int ARRAY
- See Also:
- Constant Field Values
BEGIN
public static final int BEGIN
- See Also:
- Constant Field Values
CONST
public static final int CONST
- See Also:
- Constant Field Values
DIV
public static final int DIV
- See Also:
- Constant Field Values
DO
public static final int DO
- See Also:
- Constant Field Values
ELSE
public static final int ELSE
- See Also:
- Constant Field Values
ELSIF
public static final int ELSIF
- See Also:
- Constant Field Values
END
public static final int END
- See Also:
- Constant Field Values
IF
public static final int IF
- See Also:
- Constant Field Values
MOD
public static final int MOD
- See Also:
- Constant Field Values
MODULE
public static final int MODULE
- See Also:
- Constant Field Values
OF
public static final int OF
- See Also:
- Constant Field Values
OR
public static final int OR
- See Also:
- Constant Field Values
PROCEDURE
public static final int PROCEDURE
- See Also:
- Constant Field Values
RECORD
public static final int RECORD
- See Also:
- Constant Field Values
REPEAT
public static final int REPEAT
- See Also:
- Constant Field Values
THEN
public static final int THEN
- See Also:
- Constant Field Values
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
UNTIL
public static final int UNTIL
- See Also:
- Constant Field Values
VAR
public static final int VAR
- See Also:
- Constant Field Values
WHILE
public static final int WHILE
- See Also:
- Constant Field Values
SINGLE
public static final int SINGLE
- See Also:
- Constant Field Values
AND
public static final int AND
- See Also:
- Constant Field Values
TIMES
public static final int TIMES
- See Also:
- Constant Field Values
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
EQUAL
public static final int EQUAL
- See Also:
- Constant Field Values
NOTEQUAL
public static final int NOTEQUAL
- See Also:
- Constant Field Values
SEMICOLON
public static final int SEMICOLON
- See Also:
- Constant Field Values
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
PERIOD
public static final int PERIOD
- See Also:
- Constant Field Values
RPAREN
public static final int RPAREN
- See Also:
- Constant Field Values
LBRAK
public static final int LBRAK
- See Also:
- Constant Field Values
RBRAK
public static final int RBRAK
- See Also:
- Constant Field Values
NOT
public static final int NOT
- See Also:
- Constant Field Values
LEQ
public static final int LEQ
- See Also:
- Constant Field Values
LESS
public static final int LESS
- See Also:
- Constant Field Values
GEQ
public static final int GEQ
- See Also:
- Constant Field Values
GREATER
public static final int GREATER
- See Also:
- Constant Field Values
BECOMES
public static final int BECOMES
- See Also:
- Constant Field Values
COLON
public static final int COLON
- See Also:
- Constant Field Values
LPAREN
public static final int LPAREN
- See Also:
- Constant Field Values
NUMBER
public static final int NUMBER
- See Also:
- Constant Field Values
IDENT
public static final int IDENT
- See Also:
- Constant Field Values
ACTUALPARAMETERS
public static final int ACTUALPARAMETERS
- See Also:
- Constant Field Values
ARRAYTYPE
public static final int ARRAYTYPE
- See Also:
- Constant Field Values
ASSIGNMENT
public static final int ASSIGNMENT
- See Also:
- Constant Field Values
DECLARATIONS
public static final int DECLARATIONS
- See Also:
- Constant Field Values
EXPRESSION
public static final int EXPRESSION
- See Also:
- Constant Field Values
FACTOR
public static final int FACTOR
- See Also:
- Constant Field Values
FIELDLIST
public static final int FIELDLIST
- See Also:
- Constant Field Values
FORMALPARAMETERS
public static final int FORMALPARAMETERS
- See Also:
- Constant Field Values
FPSECTION
public static final int FPSECTION
- See Also:
- Constant Field Values
IDENTLIST
public static final int IDENTLIST
- See Also:
- Constant Field Values
IFSTATEMENT
public static final int IFSTATEMENT
- See Also:
- Constant Field Values
MINICOMP
public static final int MINICOMP
- See Also:
- Constant Field Values
PROCEDUREBODY
public static final int PROCEDUREBODY
- See Also:
- Constant Field Values
PROCEDURECALL
public static final int PROCEDURECALL
- See Also:
- Constant Field Values
PROCEDUREDECLARATION
public static final int PROCEDUREDECLARATION
- See Also:
- Constant Field Values
PROCEDUREHEADING
public static final int PROCEDUREHEADING
- See Also:
- Constant Field Values
RECORDTYPE
public static final int RECORDTYPE
- See Also:
- Constant Field Values
REPEATSTATEMENT
public static final int REPEATSTATEMENT
- See Also:
- Constant Field Values
SELECTOR
public static final int SELECTOR
- See Also:
- Constant Field Values
SIMPLEEXPRESSION
public static final int SIMPLEEXPRESSION
- See Also:
- Constant Field Values
STATEMENT
public static final int STATEMENT
- See Also:
- Constant Field Values
STATEMENTSEQUENCE
public static final int STATEMENTSEQUENCE
- See Also:
- Constant Field Values
TERM
public static final int TERM
- See Also:
- Constant Field Values
TYP
public static final int TYP
- See Also:
- Constant Field Values
WHILESTATEMENT
public static final int WHILESTATEMENT
- See Also:
- Constant Field Values
EPSILON
public static final int EPSILON
- See Also:
- Constant Field Values
EMPTY
public static final int EMPTY
- See Also:
- Constant Field Values
ERR_NOT_TERMINATED
public static final int ERR_NOT_TERMINATED
- See Also:
- Constant Field Values
ERR_INVALID_CHARACTER
public static final int ERR_INVALID_CHARACTER
- See Also:
- Constant Field Values
ERR_NUMBER_TOO_HIGH
public static final int ERR_NUMBER_TOO_HIGH
- See Also:
- Constant Field Values
ERR_EXP_ARRAY
public static final int ERR_EXP_ARRAY
- See Also:
- Constant Field Values
ERR_EXP_BECOMES
public static final int ERR_EXP_BECOMES
- See Also:
- Constant Field Values
ERR_EXP_COLON
public static final int ERR_EXP_COLON
- See Also:
- Constant Field Values
ERR_EXP_COMMA
public static final int ERR_EXP_COMMA
- See Also:
- Constant Field Values
ERR_EXP_DO
public static final int ERR_EXP_DO
- See Also:
- Constant Field Values
ERR_EXP_END
public static final int ERR_EXP_END
- See Also:
- Constant Field Values
ERR_EXP_EQUAL
public static final int ERR_EXP_EQUAL
- See Also:
- Constant Field Values
ERR_EXP_IDENT
public static final int ERR_EXP_IDENT
- See Also:
- Constant Field Values
ERR_EXP_IF
public static final int ERR_EXP_IF
- See Also:
- Constant Field Values
ERR_EXP_LPAREN
public static final int ERR_EXP_LPAREN
- See Also:
- Constant Field Values
ERR_EXP_MODULE
public static final int ERR_EXP_MODULE
- See Also:
- Constant Field Values
ERR_EXP_OF
public static final int ERR_EXP_OF
- See Also:
- Constant Field Values
ERR_EXP_PERIOD
public static final int ERR_EXP_PERIOD
- See Also:
- Constant Field Values
ERR_EXP_PROCEDURE
public static final int ERR_EXP_PROCEDURE
- See Also:
- Constant Field Values
ERR_EXP_RBRAK
public static final int ERR_EXP_RBRAK
- See Also:
- Constant Field Values
ERR_EXP_RECORD
public static final int ERR_EXP_RECORD
- See Also:
- Constant Field Values
ERR_EXP_REPEAT
public static final int ERR_EXP_REPEAT
- See Also:
- Constant Field Values
ERR_EXP_RPAREN
public static final int ERR_EXP_RPAREN
- See Also:
- Constant Field Values
ERR_EXP_SEMICOLON
public static final int ERR_EXP_SEMICOLON
- See Also:
- Constant Field Values
ERR_EXP_THEN
public static final int ERR_EXP_THEN
- See Also:
- Constant Field Values
ERR_EXP_UNTIL
public static final int ERR_EXP_UNTIL
- See Also:
- Constant Field Values
ERR_EXP_WHILE
public static final int ERR_EXP_WHILE
- See Also:
- Constant Field Values
ERR_NOT_EXP_DECLARATIONS
public static final int ERR_NOT_EXP_DECLARATIONS
- See Also:
- Constant Field Values
ERR_NOT_EXP_FACTOR
public static final int ERR_NOT_EXP_FACTOR
- See Also:
- Constant Field Values
ERR_NOT_EXP_STATEMENT
public static final int ERR_NOT_EXP_STATEMENT
- See Also:
- Constant Field Values
ERR_NOT_EXP_TYPE
public static final int ERR_NOT_EXP_TYPE
- See Also:
- Constant Field Values
ERR_INV_FACTOR
public static final int ERR_INV_FACTOR
- See Also:
- Constant Field Values
ERR_INV_STATEMENT
public static final int ERR_INV_STATEMENT
- See Also:
- Constant Field Values
ERR_INV_TYPE
public static final int ERR_INV_TYPE
- See Also:
- Constant Field Values