1// SPDX-FileCopyrightText: 2025 The Project Pterodactyl Developers 2// 3// SPDX-License-Identifier: MPL-2.0 4 5import Foundation 6 7enum Lhs: Grammar { 8 static let kind = SyntaxTreeKind(name: "declaration.lhs") 9 static let kinds = [kind] 10 11 static func before(_ parser: inout Parser) -> Bool { 12 parser.isAt(kind: .identifier) 13 } 14 15 static func inside(_ parser: inout Parser) -> ParseResult { 16 parser.expect(kind: .identifier, metadata: TokenMetadata(semanticTokenType: .method)) 17 return ParseResult(kind: Self.kind) 18 } 19}