mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 00:45:04 +01:00
start structs
This commit is contained in:
parent
f6f6673721
commit
b52abed441
8 changed files with 214 additions and 62 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue