C# Class IronLua.Compiler.Parser.Lexer

显示文件 Open project: ericmj/IronLua Class Usage Examples

Public Methods

Method Description
Consume ( ) : void
ConsumeLexeme ( ) : string
Expect ( Symbol symbol ) : void
ExpectLexeme ( Symbol symbol ) : string
Lexer ( Input input ) : System.Collections.Generic
TryConsume ( Symbol symbol ) : bool

Private Methods

Method Description
BufferExponent ( ) : void
BufferNumericEscape ( ) : void
CountEquals ( ) : int
IdentifierOrKeyword ( ) : Token
LongComment ( ) : void
LongPunctuation ( char c1 ) : Token
LongStringLiteral ( ) : Token
NextLine ( ) : void
NextToken ( ) : Token
NumericHexLiteral ( ) : Token
NumericLiteral ( ) : Token
Punctuation ( ) : Token
ShortComment ( ) : void
StringLiteral ( char end ) : Token

Method Details

Consume() public method

public Consume ( ) : void
return void

ConsumeLexeme() public method

public ConsumeLexeme ( ) : string
return string

Expect() public method

public Expect ( Symbol symbol ) : void
symbol Symbol
return void

ExpectLexeme() public method

public ExpectLexeme ( Symbol symbol ) : string
symbol Symbol
return string

Lexer() public method

public Lexer ( Input input ) : System.Collections.Generic
input Input
return System.Collections.Generic

TryConsume() public method

public TryConsume ( Symbol symbol ) : bool
symbol Symbol
return bool