C# Class Bike.Parser.Lexer

Datei anzeigen Open project: buunguyen/bike Class Usage Examples

Public Methods

Method Description
Lexer ( string source, string filePath = null ) : System
NextToken ( ) : Token

Private Methods

Method Description
Ampersand ( ) : Token

&&, &&=

Bang ( ) : Token
Comment ( ) : void
Equal ( ) : Token
Error ( string msg ) : Exception
Escape ( ) : char
GreaterThan ( ) : Token
Identifier ( ) : Token
LessThan ( ) : Token
Match ( char expectedChar ) : void
Minus ( ) : Token
Next ( ) : void
Number ( ) : Token
Peek ( int ahead = 1 ) : int
Percent ( ) : Token
Pipe ( ) : Token
Plus ( ) : Token
Slash ( ) : Token
Star ( ) : Token
String ( ) : Token
Token ( TokenType type, string txt ) : Token
Whitespace ( ) : void

Method Details

Lexer() public method

public Lexer ( string source, string filePath = null ) : System
source string
filePath string
return System

NextToken() public method

public NextToken ( ) : Token
return Token