C# 클래스 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
파일 보기 프로젝트 열기: jakl/hacks 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
c_iKeywordCount int
m_iLineNum int
m_strName string
m_tokType TOKENTYPE
multichars string>.Dictionary
regexes Regex>.Dictionary
singlechars char>.Dictionary

공개 메소드들

메소드 설명
ToString ( ) : string
Token ( ) : System
Token ( Token tok, string inName, int inLine ) : System
Token ( string inName, int inLine ) : System

메소드 상세

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Token() 공개 메소드

public Token ( ) : System
리턴 System

Token() 공개 메소드

public Token ( Token tok, string inName, int inLine ) : System
tok Token
inName string
inLine int
리턴 System

Token() 공개 메소드

public Token ( string inName, int inLine ) : System
inName string
inLine int
리턴 System

프로퍼티 상세

c_iKeywordCount 공개적으로 정적으로 프로퍼티

public static int c_iKeywordCount
리턴 int

m_iLineNum 공개적으로 프로퍼티

public int m_iLineNum
리턴 int

m_strName 공개적으로 프로퍼티

public string m_strName
리턴 string

m_tokType 공개적으로 프로퍼티

public TOKENTYPE m_tokType
리턴 TOKENTYPE

multichars 공개적으로 정적으로 프로퍼티

public static Dictionary multichars
리턴 string>.Dictionary

regexes 공개적으로 정적으로 프로퍼티

public static Dictionary regexes
리턴 Regex>.Dictionary

singlechars 공개적으로 정적으로 프로퍼티

public static Dictionary singlechars
리턴 char>.Dictionary