+8
-5
Sources/PterodactylBuild/Keys/Blob/GetLineMap.swift
+8
-5
Sources/PterodactylBuild/Keys/Blob/GetLineMap.swift
···
+13
-10
Sources/PterodactylBuild/Keys/Blob/ParseDocument.swift
+13
-10
Sources/PterodactylBuild/Keys/Blob/ParseDocument.swift
···+public static let versionDependencies: [any FXVersioning.Type] = [ReadContents.self, Tokenise.self]
+17
-17
Sources/PterodactylSyntax/Grammar.swift
+17
-17
Sources/PterodactylSyntax/Grammar.swift
···/// Indicates whether the current parser state is consistent with the grammatical production starting here. When a given grammatical element is optional, this can be used to avoid backtracking. This is a *precondition* for parsing.-/// Parse the grammatical production, assuming the precondition indicated by ``before(_:)``. This function should not be called outside this module (instead, use ``parse(_:)`` and ``tryParse(_:)``.+/// Parse the grammatical production, assuming the precondition indicated by ``precondition(_:)``. This function should not be called outside this module (instead, use ``parse(_:recovery:)`` and ``tryParse(_:recovery:)``.···
+5
-5
Sources/PterodactylSyntax/Grammar/Document.swift
+5
-5
Sources/PterodactylSyntax/Grammar/Document.swift
···parser.advance(error: "Expected to see either an import or a theory declaration, but instead got \(parser.currentToken.kind): \(parser.currentToken.text)")
+7
-7
Sources/PterodactylSyntax/Grammar/Document/Import.swift
+7
-7
Sources/PterodactylSyntax/Grammar/Document/Import.swift
···+parser.expect(kind: .identifier, metadata: TokenMetadata(semanticTokenType: .namespace), recovery: recovery)···+parser.expect(kind: .keyword(.import), metadata: TokenMetadata(semanticTokenType: .keyword), recovery: recovery)
+6
-6
Sources/PterodactylSyntax/Grammar/Document/Theory.swift
+6
-6
Sources/PterodactylSyntax/Grammar/Document/Theory.swift
···+parser.expect(kind: .keyword(.theory), metadata: TokenMetadata(semanticTokenType: .keyword), recovery: recovery)
+6
-5
Sources/PterodactylSyntax/Grammar/Document/Theory/Declaration.swift
+6
-5
Sources/PterodactylSyntax/Grammar/Document/Theory/Declaration.swift
·········
+3
-3
Sources/PterodactylSyntax/Grammar/Document/Theory/Declaration/Lhs.swift
+3
-3
Sources/PterodactylSyntax/Grammar/Document/Theory/Declaration/Lhs.swift
···+parser.expect(kind: .identifier, metadata: TokenMetadata(semanticTokenType: .method), recovery: recovery)
+3
-3
Sources/PterodactylSyntax/Grammar/Document/Theory/Declaration/Rhs.swift
+3
-3
Sources/PterodactylSyntax/Grammar/Document/Theory/Declaration/Rhs.swift
···+parser.expect(kind: .identifier, metadata: TokenMetadata(semanticTokenType: .method), recovery: recovery)
+4
-8
Sources/PterodactylSyntax/Grammar/Document/Theory/TheoryBlock.swift
+4
-8
Sources/PterodactylSyntax/Grammar/Document/Theory/TheoryBlock.swift
···+parser.expect(kind: .keyword(.where), metadata: TokenMetadata(semanticTokenType: .keyword), recovery: recovery.union([.blockBegin]))
+2
-2
Sources/PterodactylSyntax/Grammar/Document/Theory/TheoryName.swift
+2
-2
Sources/PterodactylSyntax/Grammar/Document/Theory/TheoryName.swift
···
+60
-82
Sources/PterodactylSyntax/Parser.swift
+60
-82
Sources/PterodactylSyntax/Parser.swift
·········-public mutating func close(mark: MarkOpened, kind: SyntaxTreeKind, metadata: SyntaxTreeMetadata?) {-public mutating func eat(kindSatisfying predicate: (TokenKind) -> Bool, metadata: TokenMetadata?) -> Bool {-public mutating func expect(kind: TokenKind, metadata: TokenMetadata?, error: String? = nil) {+mutating func recoverUntil(_ anchors: Set<TokenKind>, expected: TokenKind, error: String? = nil) {+public mutating func expect(kind: TokenKind, metadata: TokenMetadata?, recovery: Set<TokenKind>, error: String? = nil) {···
+1
-1
Sources/PterodactylSyntax/SyntaxTree.swift
+1
-1
Sources/PterodactylSyntax/SyntaxTree.swift
···/// A mutable version of ``SyntaxTree`` that does not keep track of textual length, for use when constructing trees.
+70
Sources/PterodactylSyntax/SyntaxTreeBuilder.swift
+70
Sources/PterodactylSyntax/SyntaxTreeBuilder.swift
···+public mutating func close(mark: MarkOpened, kind: SyntaxTreeKind, metadata: SyntaxTreeMetadata?) {
+1
-1
Sources/PterodactylSyntax/Token.swift
+1
-1
Sources/PterodactylSyntax/Token.swift