Parser takes a stream of Tokens and produces a series of serialization Events. Parsing can fail due to ill-formed input.
ParserImpl is using following productions:
ParseStreamStart ::= (stream_start) ParseDocumentStart ParseDocumentStartOpt ParseStreamEnd ParseStreamEnd ::= (stream_end)
ParseDocumentStart ::= (document_start) ParseNode ParseDocumentEnd ParseDocumentEnd ::= (document_end) ParseDocumentStartOpt ::= epsilon | ParseDocumentStart ParseDocumentStartOpt
ParseNode(indentLess=false) ::= ParseMappingStart | ParseFlowMappingStart | ParseSequenceStart(indentLess) | ParseFlowSeqStart | ParseScalar ParseScalar ::= scalar
ParseMappingStart ::= mapping_start ParseMappingEntry ParseMappingEnd ParseMappingEnd ::= mapping_end ParseMappingEntry ::= mapping_key ParseScalar ParseMappingValue ParseMappingEntryOpt ParseMappingValue ::= mapping_value ParseNode(true) ParseMappingEntryOpt ::= epsilon | ParseMappingEntry
ParseSequenceStart(indentLess)::= (seq_start) ParseSequenceEntry ParseSequenceEnd(indentLess) ParseSequenceEnd(indentLess) ::= (seq_end) ParseSequenceEntry ::= seq_value ParseNode ParseSequenceEntryOpt ParseSequenceEntryOpt ::= epsilon | ParseSequenceEntry
ParseFlowNode ::= ParseFlowMappingStart | ParseFlowSeqStart | ParseScalar
ParseFlowMappingStart ::= flow_mapping_start ParseFlowMappingEntryOpt ParseFlowMappingEnd ParseFlowMappingEnd ::= flow_mapping_end ParseFlowMappingEntry ::= mapping_key ParseScalar ParseMappingValue ParseFlowMappingEntryOpt ::= epsilon | ParseFlowMappingEntry ParseFlowMappingComma ::= epsilon | comma ParseFlowMappingEntryOpt
ParseFlowSeqStart ::= flow_seq_start ParseFlowSeqEntryOpt ParseFlowSeqEnd ParseFlowSeqEnd ::= flow_seq_end ParseFlowSeqEntry ::= (ParseFlowNode | ParseFlowPairKey) ParseFlowSeqComma ParseFlowSeqEntryOpt ::= epsilon | ParseFlowSeqEntry ParseFlowSeqComma ::= epsilon | comma ParseFlowSeqEntryOpt
ParseFlowPairKey ::= mapping_key ParseFlowNode ParseFlowPairValue ParseFlowPairValue ::= mapping_value ParseFlowNode
Attributes
- Companion
- object
- Source
- ParserImpl.scala
- Graph
-
- Supertypes