marf.nlp.Parsing
Class TokenSubType
java.lang.Object
marf.nlp.Parsing.TokenType
marf.nlp.Parsing.TokenSubType
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- GrammarTokenType
public class TokenSubType
- extends TokenType
C+- Specific Tokens Types.
$Id: TokenSubType.java,v 1.7 2005/06/16 19:58:57 mokhov Exp $
- Since:
- 0.3.0
- Version:
- $Revision: 1.7 $
- Author:
- Serguei Mokhov
- See Also:
- Serialized Form
Fields inherited from class marf.nlp.Parsing.TokenType |
BACKTRACK, BRACKET, EOF, ERROR, ID, KEYWORD, NUM, OPERATOR, PUNCT, TokenTypes, type, UNKNOWN |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
subtype
public int subtype
OP_EQ
public static final int OP_EQ
- See Also:
- Constant Field Values
OP_NE
public static final int OP_NE
- See Also:
- Constant Field Values
OP_LT
public static final int OP_LT
- See Also:
- Constant Field Values
OP_GT
public static final int OP_GT
- See Also:
- Constant Field Values
OP_LE
public static final int OP_LE
- See Also:
- Constant Field Values
OP_GE
public static final int OP_GE
- See Also:
- Constant Field Values
OP_PLUS
public static final int OP_PLUS
- See Also:
- Constant Field Values
OP_MINUS
public static final int OP_MINUS
- See Also:
- Constant Field Values
OP_MULT
public static final int OP_MULT
- See Also:
- Constant Field Values
OP_DIV
public static final int OP_DIV
- See Also:
- Constant Field Values
OP_ASIGN
public static final int OP_ASIGN
- See Also:
- Constant Field Values
OP_MEMB
public static final int OP_MEMB
- See Also:
- Constant Field Values
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
SEMICOLON
public static final int SEMICOLON
- See Also:
- Constant Field Values
PAREN_OP
public static final int PAREN_OP
- See Also:
- Constant Field Values
PAREN_CL
public static final int PAREN_CL
- See Also:
- Constant Field Values
CURLY_OP
public static final int CURLY_OP
- See Also:
- Constant Field Values
CURLY_CL
public static final int CURLY_CL
- See Also:
- Constant Field Values
SQR_OP
public static final int SQR_OP
- See Also:
- Constant Field Values
SQR_CL
public static final int SQR_CL
- 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
IF
public static final int IF
- See Also:
- Constant Field Values
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
READ
public static final int READ
- See Also:
- Constant Field Values
REAL
public static final int REAL
- See Also:
- Constant Field Values
RETURN
public static final int RETURN
- See Also:
- Constant Field Values
THEN
public static final int THEN
- See Also:
- Constant Field Values
WHILE
public static final int WHILE
- See Also:
- Constant Field Values
WRITE
public static final int WRITE
- See Also:
- Constant Field Values
PROGRAM
public static final int PROGRAM
- See Also:
- Constant Field Values
AND
public static final int AND
- See Also:
- Constant Field Values
NOT
public static final int NOT
- See Also:
- Constant Field Values
OR
public static final int OR
- See Also:
- Constant Field Values
THIS
public static final int THIS
- See Also:
- Constant Field Values
Keywords
public static java.util.Hashtable Keywords
- Since:
- October 2, 2001
ValidPunctuation
public static java.util.Hashtable ValidPunctuation
- Since:
- October 2, 2001
Operators
public static java.util.Hashtable Operators
- Since:
- October 2, 2001
Brackets
public static java.util.Hashtable Brackets
- Since:
- October 2, 2001
TokenSubTypes
public static java.util.Hashtable TokenSubTypes
- Since:
- October 2, 2001
Matches numbers to literals
for output purposes.
TokenSubType
public TokenSubType()
- Default Constructor.
setSubTypeByLexeme
public void setSubTypeByLexeme(java.lang.String pLexeme)
getMARFSourceCodeRevision
public static java.lang.String getMARFSourceCodeRevision()
- Retrieves class' revision.
- Returns:
- revision string