PureYAML/Sources/Parsing
Mihaela Mihaljevic 561921df42 feat(parsing): route the event API through the ported libyaml engine
parseEvents now runs on the ported scanner+parser instead of the
hand-rolled approximation. Adds 1-based mark conversion at the boundary
(the port stays faithfully 0-based internally), translates the port's
scanner and parser errors into the diagnostic-aware ParseError with
precise codes (unterminatedQuotedString, unterminatedTag, tabIndentation)
and a readable malformed fallback, and retargets the canonical event gate
to track the port's gap set.

The port matches the canonical test.event on 253 of 308 valid cases;
the remaining gaps match libyaml's own behaviour and are the targets for
surpassing libyaml. Golden event and diagnostic expectations are rebased
onto the port where it is faithful or more correct (resolved verbatim
tags, libyaml's stream-end marks, reaching the real unterminated quote).
333 tests pass.
2026-06-24 17:32:29 +02:00
..
BlockScalarChomping.swift
BlockScalarStyle.swift
CollectionStyle.swift
Event.swift feat(parsing): route the event API through the ported libyaml engine 2026-06-24 17:32:29 +02:00
EventComposer.Merge.swift
EventComposer.swift
EventStreamComposer.swift
LibYAML.CharacterClass.swift
LibYAML.IndentEngine.swift
LibYAML.NodeProperties.swift feat(parsing): port libyaml parser state machine to Swift 2026-06-24 17:05:59 +02:00
LibYAML.Parser.Block.swift feat(parsing): port libyaml parser state machine to Swift 2026-06-24 17:05:59 +02:00
LibYAML.Parser.Directives.swift feat(parsing): port libyaml parser state machine to Swift 2026-06-24 17:05:59 +02:00
LibYAML.Parser.Document.swift feat(parsing): port libyaml parser state machine to Swift 2026-06-24 17:05:59 +02:00
LibYAML.Parser.Flow.swift feat(parsing): port libyaml parser state machine to Swift 2026-06-24 17:05:59 +02:00
LibYAML.Parser.Helpers.swift feat(parsing): port libyaml parser state machine to Swift 2026-06-24 17:05:59 +02:00
LibYAML.Parser.Node.swift feat(parsing): port libyaml parser state machine to Swift 2026-06-24 17:05:59 +02:00
LibYAML.Parser.swift feat(parsing): port libyaml parser state machine to Swift 2026-06-24 17:05:59 +02:00
LibYAML.ParserError.swift feat(parsing): port libyaml parser state machine to Swift 2026-06-24 17:05:59 +02:00
LibYAML.ParserState.swift feat(parsing): port libyaml parser state machine to Swift 2026-06-24 17:05:59 +02:00
LibYAML.Reader.swift
LibYAML.Scanner.Anchor.swift
LibYAML.Scanner.BlockScalar.swift
LibYAML.Scanner.Directive.swift feat(parsing): port libyaml directive scanner to Swift 2026-06-24 16:54:04 +02:00
LibYAML.Scanner.Fetch.swift fix(parsing): reject a tab where a token must start, add port differential 2026-06-24 17:12:36 +02:00
LibYAML.Scanner.FlowScalar.swift
LibYAML.Scanner.PlainScalar.swift
LibYAML.Scanner.swift
LibYAML.Scanner.Tag.swift
LibYAML.ScannerError.swift
LibYAML.SimpleKey.swift
LibYAML.swift
LibYAML.Token.swift
LibYAML.TokenType.swift feat(parsing): port libyaml directive scanner to Swift 2026-06-24 16:54:04 +02:00
Mark.swift
NodeKind.swift
NodeProperties.swift
NodeResult.swift
ParseError.LibYAML.swift feat(parsing): route the event API through the ported libyaml engine 2026-06-24 17:32:29 +02:00
ParseError.swift feat(parsing): route the event API through the ported libyaml engine 2026-06-24 17:32:29 +02:00
Parser.Events.swift feat(parsing): route the event API through the ported libyaml engine 2026-06-24 17:32:29 +02:00
Parser.ScalarComposition.swift
Parser.swift
Reader.swift
Scalar.swift
ScalarStyle.swift
Scanner.BlockScalar.swift
Scanner.Directives.swift
Scanner.FlowContext.swift
Scanner.FlowSimpleKey.swift
Scanner.Helpers.swift
Scanner.Indentation.swift
Scanner.PropertyTokens.swift
Scanner.Step.swift
Scanner.swift
Scanner.Tabs.swift
TagNormalizer.swift
Text.swift
Token.swift
TokenCursor.swift
TokenEventParser.Block.swift
TokenEventParser.EmptyNode.swift
TokenEventParser.Flow.swift
TokenEventParser.Helpers.swift
TokenEventParser.swift