C# Class YamlDotNet.Core.Parser

Parses YAML streams.
Mostrar archivo Open project: aaubry/YamlDotNet Class Usage Examples

Public Methods

Method Description
MoveNext ( ) : bool

Moves to the next event.

Parser ( IScanner scanner ) : System

Initializes a new instance of the Parser class.

Parser ( TextReader input ) : System

Initializes a new instance of the Parser class.

Private Methods

Method Description
AddTagDirectives ( TagDirectiveCollection directives, IEnumerable source ) : void
GetCurrentToken ( ) : Token
ParseBlockMappingKey ( bool isFirst ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: block_mapping ::= BLOCK-MAPPING_START ******************* ((KEY block_node_or_indentless_sequence?)? *** * (VALUE block_node_or_indentless_sequence?)?)* BLOCK-END *********

ParseBlockMappingValue ( ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: block_mapping ::= BLOCK-MAPPING_START ((KEY block_node_or_indentless_sequence?)? (VALUE block_node_or_indentless_sequence?)?)* ***** * BLOCK-END

ParseBlockSequenceEntry ( bool isFirst ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: block_sequence ::= BLOCK-SEQUENCE-START (BLOCK-ENTRY block_node?)* BLOCK-END ******************** *********** * *********

ParseDocumentContent ( ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* ***********

ParseDocumentEnd ( ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: implicit_document ::= block_node DOCUMENT-END* ************* explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* *************

ParseDocumentStart ( bool isImplicit ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: implicit_document ::= block_node DOCUMENT-END* * explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* *************************

ParseFlowMappingKey ( bool isFirst ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: flow_mapping ::= FLOW-MAPPING-START ****************** (flow_mapping_entry FLOW-ENTRY)* * ********** flow_mapping_entry? ****************** FLOW-MAPPING-END **************** flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? * *** *

ParseFlowMappingValue ( bool isEmpty ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? * ***** *

ParseFlowSequenceEntry ( bool isFirst ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: flow_sequence ::= FLOW-SEQUENCE-START ******************* (flow_sequence_entry FLOW-ENTRY)* * ********** flow_sequence_entry? * FLOW-SEQUENCE-END ***************** flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? *

ParseFlowSequenceEntryMappingEnd ( ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? *

ParseFlowSequenceEntryMappingKey ( ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? *** *

ParseFlowSequenceEntryMappingValue ( ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? ***** *

ParseIndentlessSequenceEntry ( ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: indentless_sequence ::= (BLOCK-ENTRY block_node?)+ *********** *

ParseNode ( bool isBlock, bool isIndentlessSequence ) : YamlDotNet.Core.Events.ParsingEvent

Parse the productions: block_node_or_indentless_sequence ::= ALIAS ***** | properties (block_content | indentless_block_sequence)? ********** * | block_content | indentless_block_sequence * block_node ::= ALIAS ***** | properties block_content? ********** * | block_content * flow_node ::= ALIAS ***** | properties flow_content? ********** * | flow_content * properties ::= TAG ANCHOR? | ANCHOR TAG? ************************* block_content ::= block_collection | flow_collection | SCALAR ****** flow_content ::= flow_collection | SCALAR ******

ParseStreamStart ( ) : YamlDotNet.Core.Events.ParsingEvent

Parse the production: stream ::= STREAM-START implicit_document? explicit_document* STREAM-END ************

ProcessDirectives ( TagDirectiveCollection tags ) : VersionDirective

Parse directives.

ProcessEmptyScalar ( YamlDotNet.Core.Mark position ) : YamlDotNet.Core.Events.ParsingEvent

Generate an empty scalar event.

Skip ( ) : void
StateMachine ( ) : YamlDotNet.Core.Events.ParsingEvent

Method Details

MoveNext() public method

Moves to the next event.
public MoveNext ( ) : bool
return bool

Parser() public method

Initializes a new instance of the Parser class.
public Parser ( IScanner scanner ) : System
scanner IScanner
return System

Parser() public method

Initializes a new instance of the Parser class.
public Parser ( TextReader input ) : System
input System.IO.TextReader The input where the YAML stream is to be read.
return System