marf.nlp.Parsing.GrammarCompiler
Class GrammarTokenType

java.lang.Object
  |
  +--marf.nlp.Parsing.TokenType
        |
        +--marf.nlp.Parsing.TokenSubType
              |
              +--marf.nlp.Parsing.GrammarCompiler.GrammarTokenType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ProbabilisticGrammarTokenType

public class GrammarTokenType
extends TokenSubType

GrammarTokenType. $Id: GrammarTokenType.java,v 1.10 2005/08/13 23:09:39 susan_fan Exp $

Since:
0.3.0
Version:
$Revision: 1.10 $
Author:
Serguei Mokhov
See Also:
Serialized Form

Field Summary
static int EPSILON
          This indicates the epsilon in the grammar tokens.
static int GRAMMAR_EOL
          End of grammar line or statement.
static int GRAMMAR_ID
          Equivalent to TokenType's ID but for grammar parsing.
static int GRAMMAR_OR
          Productions separator - '|'.
static int RULE_OP
          ::=.
static int S_CHECK_DEFINED
          Semantic Tokens.
static int S_CHECK_MEMB_DEFINED
           
static int S_CHECK_SCOPE
           
static int S_DEFINE_CLASS
           
static int S_DEFINE_FUNC
           
static int S_DEFINE_VAR
           
static int S_ENFORCE_INT
           
static int S_TYPE_CHECK_AND_CAST
           
static int SE_MISSING_SEMICOLON
          Syntax Error Tokens.
static int SEMANTIC_TOKEN
          Semantic token type.
 
Fields inherited from class marf.nlp.Parsing.TokenSubType
AND, Brackets, CLASS, COMMA, CURLY_CL, CURLY_OP, DO, ELSE, IF, INTEGER, Keywords, NOT, OP_ASIGN, OP_DIV, OP_EQ, OP_GE, OP_GT, OP_LE, OP_LT, OP_MEMB, OP_MINUS, OP_MULT, OP_NE, OP_PLUS, Operators, OR, PAREN_CL, PAREN_OP, PROGRAM, READ, REAL, RETURN, SEMICOLON, SQR_CL, SQR_OP, subtype, THEN, THIS, TokenSubTypes, ValidPunctuation, WHILE, WRITE
 
Fields inherited from class marf.nlp.Parsing.TokenType
BACKTRACK, BRACKET, EOF, ERROR, ID, KEYWORD, NUM, OPERATOR, PUNCT, TokenTypes, type, UNKNOWN
 
Constructor Summary
GrammarTokenType()
          Constructor.
 
Method Summary
static java.lang.String getMARFSourceCodeRevision()
          Retrieves class' revision.
 
Methods inherited from class marf.nlp.Parsing.TokenSubType
setSubTypeByLexeme
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EPSILON

public static final int EPSILON
This indicates the epsilon in the grammar tokens.

See Also:
Constant Field Values

GRAMMAR_OR

public static final int GRAMMAR_OR
Productions separator - '|'.

See Also:
Constant Field Values

RULE_OP

public static final int RULE_OP
::=.

See Also:
Constant Field Values

GRAMMAR_ID

public static final int GRAMMAR_ID
Equivalent to TokenType's ID but for grammar parsing. Grammar's IDs are all non-terminals.

See Also:
Constant Field Values

GRAMMAR_EOL

public static final int GRAMMAR_EOL
End of grammar line or statement.

See Also:
Constant Field Values

SEMANTIC_TOKEN

public static final int SEMANTIC_TOKEN
Semantic token type.

See Also:
Constant Field Values

S_CHECK_DEFINED

public static final int S_CHECK_DEFINED
Semantic Tokens.

See Also:
Constant Field Values

S_DEFINE_VAR

public static final int S_DEFINE_VAR
See Also:
Constant Field Values

S_DEFINE_FUNC

public static final int S_DEFINE_FUNC
See Also:
Constant Field Values

S_DEFINE_CLASS

public static final int S_DEFINE_CLASS
See Also:
Constant Field Values

S_CHECK_SCOPE

public static final int S_CHECK_SCOPE
See Also:
Constant Field Values

S_ENFORCE_INT

public static final int S_ENFORCE_INT
See Also:
Constant Field Values

S_TYPE_CHECK_AND_CAST

public static final int S_TYPE_CHECK_AND_CAST
See Also:
Constant Field Values

S_CHECK_MEMB_DEFINED

public static final int S_CHECK_MEMB_DEFINED
See Also:
Constant Field Values

SE_MISSING_SEMICOLON

public static final int SE_MISSING_SEMICOLON
Syntax Error Tokens.

See Also:
Constant Field Values
Constructor Detail

GrammarTokenType

public GrammarTokenType()
Constructor.

Method Detail

getMARFSourceCodeRevision

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

Returns:
revision string