Change terminology. Sketch out Draft Function
This commit is contained in:
parent
6a0f95812a
commit
0941756bf9
8 changed files with 172 additions and 55 deletions
29
src/ui/Digith.tsx
Normal file
29
src/ui/Digith.tsx
Normal 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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue