Change terminology. Sketch out Draft Function

This commit is contained in:
Yura Dupyn 2026-02-14 00:14:15 +01:00
parent 6a0f95812a
commit 0941756bf9
8 changed files with 172 additions and 55 deletions

29
src/ui/Digith.tsx Normal file
View file

@ -0,0 +1,29 @@
import { FunctionName } from "src/lang/expr"
export type Digith =
| Digith.Repl
| Digith.NewFunctionDraft
| Digith.Function
export namespace Digith {
export type Repl = {
tag: "repl",
}
export type NewFunctionDraft = {
tag: "new-fn-draft",
raw_name: string,
raw_parameters: string,
raw_body: string,
}
export type Function = {
tag: "fn",
name: FunctionName,
raw_parameters: string,
raw_body: string,
is_loaded: boolean
}
}