marf.nlp.Parsing
Class TokenSubType

java.lang.Object
  extended by marf.nlp.Parsing.TokenType
      extended by 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

Field Summary
static int AND
           
static java.util.Hashtable Brackets
           
static int CLASS
           
static int COMMA
           
static int CURLY_CL
           
static int CURLY_OP
           
static int DO
           
static int ELSE
           
static int IF
           
static int INTEGER
           
static java.util.Hashtable Keywords
           
static int NOT
           
static int OP_ASIGN
           
static int OP_DIV
           
static int OP_EQ
           
static int OP_GE
           
static int OP_GT
           
static int OP_LE
           
static int OP_LT
           
static int OP_MEMB
           
static int OP_MINUS
           
static int OP_MULT
           
static int OP_NE
           
static int OP_PLUS
           
static java.util.Hashtable Operators
           
static int OR
           
static int PAREN_CL
           
static int PAREN_OP
           
static int PROGRAM
           
static int READ
           
static int REAL
           
static int RETURN
           
static int SEMICOLON
           
static int SQR_CL
           
static int SQR_OP
           
 int subtype
           
static int THEN
           
static int THIS
           
static java.util.Hashtable TokenSubTypes
           
static java.util.Hashtable ValidPunctuation
           
static int WHILE
           
static int WRITE
           
 
Fields inherited from class marf.nlp.Parsing.TokenType
BACKTRACK, BRACKET, EOF, ERROR, ID, KEYWORD, NUM, OPERATOR, PUNCT, TokenTypes, type, UNKNOWN
 
Constructor Summary
TokenSubType()
          Default Constructor.
 
Method Summary
static java.lang.String getMARFSourceCodeRevision()
          Retrieves class' revision.
 void setSubTypeByLexeme(java.lang.String pLexeme)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.
Constructor Detail

TokenSubType

public TokenSubType()
Default Constructor.

Method Detail

setSubTypeByLexeme

public void setSubTypeByLexeme(java.lang.String pLexeme)

getMARFSourceCodeRevision

public static java.lang.String getMARFSourceCodeRevision()
Retrieves class' revision.

Returns:
revision string