@@ -3,14 +3,14 @@ import { type Exp } from "../exp/index.ts"
33import { type Mod } from "../mod/index.ts"
44import { type Neutral } from "../value/index.ts"
55
6- export type Value = NotYet | Lambda | Lazy | DelayedApply
6+ export type Value = NotYetValue | ClosureValue | LazyValue | DelayedApplyValue
77
8- export type NotYet = {
8+ export type NotYetValue = {
99 kind : "NotYet"
1010 neutral : Neutral
1111}
1212
13- export type Lambda = {
13+ export type ClosureValue = {
1414 kind : "Lambda"
1515 mod : Mod
1616 env : Env
@@ -19,28 +19,33 @@ export type Lambda = {
1919 definedName ?: string
2020}
2121
22- export type Lazy = {
22+ export type LazyValue = {
2323 kind : "Lazy"
2424 mod : Mod
2525 env : Env
2626 exp : Exp
2727 value ?: Value
2828}
2929
30- export type DelayedApply = {
30+ export type DelayedApplyValue = {
3131 kind : "DelayedApply"
3232 target : Value
3333 arg : Value
3434}
3535
36- export function NotYet ( neutral : Neutral ) : NotYet {
36+ export function NotYetValue ( neutral : Neutral ) : NotYetValue {
3737 return {
3838 kind : "NotYet" ,
3939 neutral,
4040 }
4141}
4242
43- export function Lambda ( mod : Mod , env : Env , name : string , ret : Exp ) : Lambda {
43+ export function LambdaValue (
44+ mod : Mod ,
45+ env : Env ,
46+ name : string ,
47+ ret : Exp ,
48+ ) : ClosureValue {
4449 return {
4550 kind : "Lambda" ,
4651 mod,
@@ -50,7 +55,7 @@ export function Lambda(mod: Mod, env: Env, name: string, ret: Exp): Lambda {
5055 }
5156}
5257
53- export function Lazy ( mod : Mod , env : Env , exp : Exp ) : Lazy {
58+ export function LazyValue ( mod : Mod , env : Env , exp : Exp ) : LazyValue {
5459 return {
5560 kind : "Lazy" ,
5661 mod,
@@ -59,7 +64,10 @@ export function Lazy(mod: Mod, env: Env, exp: Exp): Lazy {
5964 }
6065}
6166
62- export function DelayedApply ( target : Value , arg : Value ) : DelayedApply {
67+ export function DelayedApplyValue (
68+ target : Value ,
69+ arg : Value ,
70+ ) : DelayedApplyValue {
6371 return {
6472 kind : "DelayedApply" ,
6573 target,
0 commit comments