C# Class Foxoft.Ci.CiLexer

Afficher le fichier Open project: epi/cito Class Usage Examples

Méthodes publiques

Свойство Type Description
InputLineNo int
PreSymbols HashSet

Protected Properties

Свойство Type Description
CopyTo StringBuilder
CurrentInt int
CurrentString string
CurrentToken CiToken
Filename string

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
ExpandMacroArg ( string name ) : bool
OnStreamEnd ( ) : bool
Open ( string filename, TextReader reader ) : void
SetReader ( TextReader reader ) : TextReader

Private Methods

Méthode Description
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

Method Details

Check() public méthode

public Check ( CiToken expected ) : void
expected CiToken
Résultat void

CiLexer() public méthode

public CiLexer ( ) : System
Résultat System

DebugLexer() public méthode

public DebugLexer ( ) : void
Résultat void

Eat() public méthode

public Eat ( CiToken token ) : bool
token CiToken
Résultat bool

ExpandMacroArg() protected méthode

protected ExpandMacroArg ( string name ) : bool
name string
Résultat bool

Expect() public méthode

public Expect ( CiToken expected ) : void
expected CiToken
Résultat void

ExpectEndOfLine() public méthode

public ExpectEndOfLine ( string directive ) : void
directive string
Résultat void

IsLetter() public static méthode

public static IsLetter ( int c ) : bool
c int
Résultat bool

NextPreToken() public méthode

public NextPreToken ( ) : void
Résultat void

NextToken() public méthode

public NextToken ( ) : CiToken
Résultat CiToken

OnStreamEnd() protected méthode

protected OnStreamEnd ( ) : bool
Résultat bool

Open() protected méthode

protected Open ( string filename, TextReader reader ) : void
filename string
reader TextReader
Résultat void

PeekChar() public méthode

public PeekChar ( ) : int
Résultat int

PopPreStack() public méthode

public PopPreStack ( string directive ) : void
directive string
Résultat void

ReadChar() public méthode

public ReadChar ( ) : int
Résultat int

See() public méthode

public See ( CiToken token ) : bool
token CiToken
Résultat bool

SetReader() protected méthode

protected SetReader ( TextReader reader ) : TextReader
reader TextReader
Résultat TextReader

SkipUntilPreEndIf() public méthode

public SkipUntilPreEndIf ( bool wasElse ) : void
wasElse bool
Résultat void

SkipUntilPreMet() public méthode

public SkipUntilPreMet ( ) : void
Résultat void

Property Details

CopyTo protected_oe property

protected StringBuilder CopyTo
Résultat StringBuilder

CurrentInt protected_oe property

protected int CurrentInt
Résultat int

CurrentString protected_oe property

protected string CurrentString
Résultat string

CurrentToken protected_oe property

protected CiToken CurrentToken
Résultat CiToken

Filename protected_oe property

protected string Filename
Résultat string

InputLineNo public_oe property

public int InputLineNo
Résultat int

PreSymbols public_oe property

public HashSet PreSymbols
Résultat HashSet