diff options
Diffstat (limited to 'src/parse-expr.ts')
| -rw-r--r-- | src/parse-expr.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/parse-expr.ts b/src/parse-expr.ts new file mode 100644 index 0000000..53de485 --- /dev/null +++ b/src/parse-expr.ts @@ -0,0 +1,11 @@ +import { Enum, constructors } from "./utils/adt"; + +export type Expr = Enum<{ + Call: { name: string, args: Expr[] } + Var: { name: string, defaultValue: Expr } + Identifier: string + LiteralString: string +}>; + +export const Expr = constructors<Expr>(); + |
