start structs

This commit is contained in:
nora 2023-07-27 20:56:02 +02:00
parent f6f6673721
commit b52abed441
8 changed files with 214 additions and 62 deletions

View file

@ -7,6 +7,7 @@ export type DatalessToken =
| "if"
| "then"
| "else"
| "type"
| "("
| ")"
| "["
@ -209,6 +210,7 @@ const keywords = new Set<string>([
"if",
"then",
"else",
"type",
]);
function isKeyword(kw: string): DatalessToken | undefined {
return keywords.has(kw) ? (kw as DatalessToken) : undefined;