C# 클래스 Foxoft.Ci.CiLexer

파일 보기 프로젝트 열기: epi/cito 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
InputLineNo int
PreSymbols HashSet

보호된 프로퍼티들

프로퍼티 타입 설명
CopyTo StringBuilder
CurrentInt int
CurrentString string
CurrentToken CiToken
Filename string

공개 메소드들

메소드 설명
Check ( CiToken expected ) : void
CiLexer ( ) : System
DebugLexer ( ) : void
Eat ( CiToken token ) : bool
Expect ( CiToken expected ) : void
ExpectEndOfLine ( string directive ) : void
IsLetter ( int c ) : bool
NextPreToken ( ) : void
NextToken ( ) : CiToken
PeekChar ( ) : int
PopPreStack ( string directive ) : void
ReadChar ( ) : int
See ( CiToken token ) : bool
SkipUntilPreEndIf ( bool wasElse ) : void
SkipUntilPreMet ( ) : void

보호된 메소드들

메소드 설명
ExpandMacroArg ( string name ) : bool
OnStreamEnd ( ) : bool
Open ( string filename, TextReader reader ) : void
SetReader ( TextReader reader ) : TextReader

비공개 메소드들

메소드 설명
EatChar ( int c ) : bool
EatPre ( CiToken token ) : bool
ParsePreAnd ( ) : bool
ParsePreExpr ( ) : bool
ParsePreOr ( ) : bool
ParsePrePrimary ( ) : bool
ReadCharLiteral ( ) : char
ReadDigit ( bool hex ) : int
ReadId ( int c ) : string
ReadPreToken ( ) : CiToken
ReadToken ( ) : CiToken

메소드 상세

Check() 공개 메소드

public Check ( CiToken expected ) : void
expected CiToken
리턴 void

CiLexer() 공개 메소드

public CiLexer ( ) : System
리턴 System

DebugLexer() 공개 메소드

public DebugLexer ( ) : void
리턴 void

Eat() 공개 메소드

public Eat ( CiToken token ) : bool
token CiToken
리턴 bool

ExpandMacroArg() 보호된 메소드

protected ExpandMacroArg ( string name ) : bool
name string
리턴 bool

Expect() 공개 메소드

public Expect ( CiToken expected ) : void
expected CiToken
리턴 void

ExpectEndOfLine() 공개 메소드

public ExpectEndOfLine ( string directive ) : void
directive string
리턴 void

IsLetter() 공개 정적인 메소드

public static IsLetter ( int c ) : bool
c int
리턴 bool

NextPreToken() 공개 메소드

public NextPreToken ( ) : void
리턴 void

NextToken() 공개 메소드

public NextToken ( ) : CiToken
리턴 CiToken

OnStreamEnd() 보호된 메소드

protected OnStreamEnd ( ) : bool
리턴 bool

Open() 보호된 메소드

protected Open ( string filename, TextReader reader ) : void
filename string
reader TextReader
리턴 void

PeekChar() 공개 메소드

public PeekChar ( ) : int
리턴 int

PopPreStack() 공개 메소드

public PopPreStack ( string directive ) : void
directive string
리턴 void

ReadChar() 공개 메소드

public ReadChar ( ) : int
리턴 int

See() 공개 메소드

public See ( CiToken token ) : bool
token CiToken
리턴 bool

SetReader() 보호된 메소드

protected SetReader ( TextReader reader ) : TextReader
reader TextReader
리턴 TextReader

SkipUntilPreEndIf() 공개 메소드

public SkipUntilPreEndIf ( bool wasElse ) : void
wasElse bool
리턴 void

SkipUntilPreMet() 공개 메소드

public SkipUntilPreMet ( ) : void
리턴 void

프로퍼티 상세

CopyTo 보호되어 있는 프로퍼티

protected StringBuilder CopyTo
리턴 StringBuilder

CurrentInt 보호되어 있는 프로퍼티

protected int CurrentInt
리턴 int

CurrentString 보호되어 있는 프로퍼티

protected string CurrentString
리턴 string

CurrentToken 보호되어 있는 프로퍼티

protected CiToken CurrentToken
리턴 CiToken

Filename 보호되어 있는 프로퍼티

protected string Filename
리턴 string

InputLineNo 공개적으로 프로퍼티

public int InputLineNo
리턴 int

PreSymbols 공개적으로 프로퍼티

public HashSet PreSymbols
리턴 HashSet