C# Class AjErl.Compiler.Lexer

Show file Open project: ajlopez/AjErl Class Usage Examples

Public Methods

Method Description
Lexer ( TextReader reader ) : System
Lexer ( string text ) : System
NextToken ( ) : Token
PushToken ( Token token ) : void

Private Methods

Method Description
IsNameChar ( char ch ) : bool
NextChar ( ) : int
NextCharSkippingWhiteSpaces ( ) : int
NextInteger ( char ch ) : Token
NextName ( char ch ) : Token
NextReal ( string integer ) : Token
NextSimpleChar ( ) : int
NextString ( ) : Token
PushChar ( int ich ) : void

Method Details

Lexer() public method

public Lexer ( TextReader reader ) : System
reader TextReader
return System

Lexer() public method

public Lexer ( string text ) : System
text string
return System

NextToken() public method

public NextToken ( ) : Token
return Token

PushToken() public method

public PushToken ( Token token ) : void
token Token
return void