package parse
- Alphabetic
- Public
- Protected
Type Members
- final class Anchor extends AnyVal
- final case class Event(kind: EventKind, pos: Option[Range]) extends Product with Serializable
Valid sequence of events should obey following grammar stream ::= STREAM-START document* STREAM-END document ::= DOCUMENT-START node DOCUMENT-END node ::= ALIAS | SCALAR | sequence | mapping sequence ::= SEQUENCE-START node* SEQUENCE-END mapping ::= MAPPING-START (node node)* MAPPING-END
- sealed abstract class EventKind extends AnyRef
- final case class NodeEventMetadata(anchor: Option[Anchor] = None, tag: Option[Tag] = None) extends Product with Serializable
Carries additional information about event which represents YAML node (scalar, start of mapping or sequence).
Carries additional information about event which represents YAML node (scalar, start of mapping or sequence). This could be: - anchor - tags (not yet supported)
- trait Parser extends AnyRef
- final class ParserImpl extends Parser
Parser takes a stream of Tokens and produces a series of serialization Events.
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
Value Members
- object Anchor
- object Event extends Serializable
- object EventKind
- object NodeEventMetadata extends Serializable
- object ParserImpl