C# Class BACnet.SchemaParser.Lexer

显示文件 Open project: LorenVS/bacstack Class Usage Examples

Public Methods

Method Description
Lexer ( TextReader reader ) : System

Constructs a new lexer instance

Next ( ) : Token

Reads the next token from the lexer

Private Methods

Method Description
_eof ( ) : bool

Determines whether the lexer is currently at the end of the input

_nextLine ( ) : void

Moves the lexer to the next line

_peekChar ( ) : char

Peeks at the next character

_readChar ( ) : char

Consumes the next character

_readIdentifierString ( ) : string

Reads an identifier string

_readInteger ( ) : string

Reads an integer token

_readSymbolString ( ) : string

Reads a symbol string

_resolve ( TokenType>.Dictionary types, string value, bool shouldThrow = false ) : Token

Resolves a token

_skipWhiteSpace ( ) : void

Skips a white space region

Method Details

Lexer() public method

Constructs a new lexer instance
public Lexer ( TextReader reader ) : System
reader TextReader The text reader to parse
return System

Next() public method

Reads the next token from the lexer
public Next ( ) : Token
return Token