this repo has no description
www.jonmsterling.com/01HC/
1// SPDX-FileCopyrightText: 2025 The Project Pterodactyl Developers
2//
3// SPDX-License-Identifier: MPL-2.0
4
5import Foundation
6
7extension Declaration {
8 enum Lhs: Grammar {
9 static let kind = SyntaxTreeKind(name: "declaration.lhs")
10 static let kinds = [kind]
11
12 static func precondition(_ parser: inout Parser) -> Bool {
13 parser.isAt(kind: .identifier)
14 }
15
16 static func inside(_ parser: inout Parser, recovery: Set<TokenKind>) -> ParseResult {
17 parser.expect(kind: .identifier, metadata: TokenMetadata(semanticTokenType: .method), recovery: recovery)
18 return ParseResult(kind: Self.kind)
19 }
20 }
21}