C# Class BACnet.SchemaParser.Parser

Show file Open project: LorenVS/bacstack Class Usage Examples

Public Methods

Method Description
Next ( ) : NamedType

Retrieves the next named type

Parser ( Lexer lexer ) : System

Constructs a new parser instance

Private Methods

Method Description
_at ( TokenType type ) : bool

Determines whether the next token has a certain type

_get ( TokenType type ) : string

Gets the value of the next token of a certain type

_parseBitDefinition ( ) : BitDefinition

Parses a bit definition

_parseBitString ( ) : TypeDefinition

Parses a bitstring definition

_parseChoice ( ) : TypeDefinition

Parses a choice definition

_parseDefinition ( bool eagerOptional = true ) : TypeDefinition

Parses a type definition

_parseEnumeration ( ) : TypeDefinition

Parses an enumeration definition

_parseEnumerationOption ( ) : EnumerationOptionDefinition

Parses an enumeration option definition

_parseField ( ) : FieldDefinition

Parses a field definition

_parseSequence ( ) : TypeDefinition

Parses a sequence definition

_peek ( ) : Token

Retrieves the next token without consuming it

_peekType ( ) : TokenType

Retrieves the type of the next token without consuming it

_read ( ) : Token

Retrieves the next token and consumes it

_skipLengthSpecifier ( ) : void

Skips a length specifier (SIZE(1..16)) if present

_skipRangeSpecifier ( ) : void

Skips a range specifier (1..16) if present

Method Details

Next() public method

Retrieves the next named type
public Next ( ) : NamedType
return NamedType

Parser() public method

Constructs a new parser instance
public Parser ( Lexer lexer ) : System
lexer Lexer The lexer instance
return System