C# Class Foxoft.Ci.CiLexer

Mostrar archivo Open project: epi/cito Class Usage Examples

Public Properties

Property Type Description
InputLineNo int
PreSymbols HashSet

Protected Properties

Property Type Description
CopyTo StringBuilder
CurrentInt int
CurrentString string
CurrentToken CiToken
Filename string

Public Methods

Method 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

Protected Methods

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

Private Methods

Method 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 method

public Check ( CiToken expected ) : void
expected CiToken
return void

CiLexer() public method

public CiLexer ( ) : System
return System

DebugLexer() public method

public DebugLexer ( ) : void
return void

Eat() public method

public Eat ( CiToken token ) : bool
token CiToken
return bool

ExpandMacroArg() protected method

protected ExpandMacroArg ( string name ) : bool
name string
return bool

Expect() public method

public Expect ( CiToken expected ) : void
expected CiToken
return void

ExpectEndOfLine() public method

public ExpectEndOfLine ( string directive ) : void
directive string
return void

IsLetter() public static method

public static IsLetter ( int c ) : bool
c int
return bool

NextPreToken() public method

public NextPreToken ( ) : void
return void

NextToken() public method

public NextToken ( ) : CiToken
return CiToken

OnStreamEnd() protected method

protected OnStreamEnd ( ) : bool
return bool

Open() protected method

protected Open ( string filename, TextReader reader ) : void
filename string
reader TextReader
return void

PeekChar() public method

public PeekChar ( ) : int
return int

PopPreStack() public method

public PopPreStack ( string directive ) : void
directive string
return void

ReadChar() public method

public ReadChar ( ) : int
return int

See() public method

public See ( CiToken token ) : bool
token CiToken
return bool

SetReader() protected method

protected SetReader ( TextReader reader ) : TextReader
reader TextReader
return TextReader

SkipUntilPreEndIf() public method

public SkipUntilPreEndIf ( bool wasElse ) : void
wasElse bool
return void

SkipUntilPreMet() public method

public SkipUntilPreMet ( ) : void
return void

Property Details

CopyTo protected_oe property

protected StringBuilder CopyTo
return StringBuilder

CurrentInt protected_oe property

protected int CurrentInt
return int

CurrentString protected_oe property

protected string CurrentString
return string

CurrentToken protected_oe property

protected CiToken CurrentToken
return CiToken

Filename protected_oe property

protected string Filename
return string

InputLineNo public_oe property

public int InputLineNo
return int

PreSymbols public_oe property

public HashSet PreSymbols
return HashSet