C# Class kompiler.Token

A token is a category of lexemes. Some tokens are keywords like "MODULE". Some tokens are symbols; the token of type PLUS is the symbol "+". Some tokens are a large set; some tokens of type INTEGER are "73" and "255". The enumerations below include all the tokens that we need to recognize. Note that the Modula-2 User's Manual offers both # and <> to mean NOT EQUAL (pp. 96, 97, and 110). Our code does not use #. We only use <>. Many errors are reported by TOKENTYPE which is just a number (like 34 for T_ID). Therefore, I added enumeration numbers for tokens in the left column as a convenience during debugging. Author: Tom Fuller Date: January 6, 2007
Afficher le fichier Open project: jakl/hacks Class Usage Examples

Méthodes publiques

Свойство Type Description
c_iKeywordCount int
m_iLineNum int
m_strName string
m_tokType TOKENTYPE
multichars string>.Dictionary
regexes Regex>.Dictionary
singlechars char>.Dictionary

Méthodes publiques

Méthode Description
ToString ( ) : string
Token ( ) : System
Token ( Token tok, string inName, int inLine ) : System
Token ( string inName, int inLine ) : System

Method Details

ToString() public méthode

public ToString ( ) : string
Résultat string

Token() public méthode

public Token ( ) : System
Résultat System

Token() public méthode

public Token ( Token tok, string inName, int inLine ) : System
tok Token
inName string
inLine int
Résultat System

Token() public méthode

public Token ( string inName, int inLine ) : System
inName string
inLine int
Résultat System

Property Details

c_iKeywordCount public_oe static_oe property

public static int c_iKeywordCount
Résultat int

m_iLineNum public_oe property

public int m_iLineNum
Résultat int

m_strName public_oe property

public string m_strName
Résultat string

m_tokType public_oe property

public TOKENTYPE m_tokType
Résultat TOKENTYPE

multichars public_oe static_oe property

public static Dictionary multichars
Résultat string>.Dictionary

regexes public_oe static_oe property

public static Dictionary regexes
Résultat Regex>.Dictionary

singlechars public_oe static_oe property

public static Dictionary singlechars
Résultat char>.Dictionary