[WIP] Refactor to NPM workspaces (#104)

This commit is contained in:
Gregory Schier
2024-09-22 21:27:10 -07:00
committed by GitHub
parent 93633875ac
commit 101b6284d6
176 changed files with 1983 additions and 1249 deletions

View File

@@ -0,0 +1,32 @@
export type FnArg = {
name: string;
value: Val;
};
export type Token = {
"type": "raw";
text: string;
} | {
"type": "tag";
val: Val;
} | {
"type": "eof";
};
export type Tokens = {
tokens: Array<Token>;
};
export type Val = {
"type": "str";
text: string;
} | {
"type": "var";
name: string;
} | {
"type": "bool";
value: boolean;
} | {
"type": "fn";
name: string;
args: Array<FnArg>;
} | {
"type": "null";
};