C# Class While.Parsing.Scanner

Mostra file Open project: einaregilsson/While-Language Class Usage Examples

Public Properties

Property Type Description
buffer Buffer

Public Methods

Method Description
Init ( ) : void
Peek ( ) : Token
ResetPeek ( ) : void
Scan ( ) : Token
Scanner ( Stream s ) : System
Scanner ( string fileName ) : System

Private Methods

Method Description
AddCh ( ) : void
CheckLiteral ( ) : void
Comment0 ( ) : bool
Comment1 ( ) : bool
Comment2 ( ) : bool
NextCh ( ) : void
NextToken ( ) : Token
Scanner ( ) : System

Method Details

Init() public method

public Init ( ) : void
return void

Peek() public method

public Peek ( ) : Token
return Token

ResetPeek() public method

public ResetPeek ( ) : void
return void

Scan() public method

public Scan ( ) : Token
return Token

Scanner() public method

public Scanner ( Stream s ) : System
s Stream
return System

Scanner() public method

public Scanner ( string fileName ) : System
fileName string
return System

Property Details

buffer public_oe property

public Buffer buffer
return Buffer