Add Tree-sitter grammar for Decodal

This commit is contained in:
2026-06-16 12:01:29 +09:00
parent f1a5836247
commit 58d2c9b423
39 changed files with 8453 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
type BaseNode = {
type: string;
named: boolean;
};
type ChildNode = {
multiple: boolean;
required: boolean;
types: BaseNode[];
};
type NodeInfo =
| (BaseNode & {
subtypes: BaseNode[];
})
| (BaseNode & {
fields: { [name: string]: ChildNode };
children: ChildNode[];
});
type Language = {
name: string;
language: unknown;
nodeTypeInfo: NodeInfo[];
};
declare const language: Language;
export = language;