fix many things

This commit is contained in:
nora 2023-07-29 23:37:01 +02:00
parent 02bbd8ec1e
commit 7cd50ab554
7 changed files with 269 additions and 51 deletions

View file

@ -7,6 +7,8 @@ export type DatalessToken =
| "then"
| "else"
| "type"
| "loop"
| "break"
| "("
| ")"
| "{"
@ -263,6 +265,8 @@ const KEYOWRDS: DatalessToken[] = [
"then",
"else",
"type",
"loop",
"break",
];
const KEYWORD_SET = new Set<string>(KEYOWRDS);