implement %

This commit is contained in:
nora 2023-07-30 22:03:24 +02:00
parent b64c02cf4a
commit d9868e3111
4 changed files with 20 additions and 3 deletions

View file

@ -24,6 +24,7 @@ export type DatalessToken =
| "-"
| "*"
| "/"
| "%"
| "&"
| "|"
| "!"
@ -76,6 +77,7 @@ const SINGLE_PUNCT: string[] = [
"/",
"&",
"|",
"%",
];
export function tokenize(input: string): Token[] {