summaryrefslogtreecommitdiff
path: root/src/interpreter/denotable.ts
diff options
context:
space:
mode:
authorLizzy Hunt <lizzy.hunt@usu.edu>2024-03-05 15:36:31 -0700
committerLizzy Hunt <lizzy.hunt@usu.edu>2024-03-05 15:36:31 -0700
commit89db6cf917002aab329ad35b89444fe1eab1d1f8 (patch)
tree66d406cec6cb9e88569f8d515ac34b0d33a51d65 /src/interpreter/denotable.ts
parent5e9a34e64254000b9922d69697774c430cdeca36 (diff)
downloadcps-interpreter-89db6cf917002aab329ad35b89444fe1eab1d1f8.tar.gz
cps-interpreter-89db6cf917002aab329ad35b89444fe1eab1d1f8.zip
add naive record construction supportrecord
Diffstat (limited to 'src/interpreter/denotable.ts')
-rw-r--r--src/interpreter/denotable.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/interpreter/denotable.ts b/src/interpreter/denotable.ts
index 119cccf..ea1ddfb 100644
--- a/src/interpreter/denotable.ts
+++ b/src/interpreter/denotable.ts
@@ -22,9 +22,14 @@ export type DenotableType =
| 'real'
| 'bool'
| 'string'
+ | 'record'
| 'bytearray'
- | 'function'
- | 'reference';
+ | 'function';
+
+export type DenotableRecord = {
+ length: number;
+ record: Array<Denotable>;
+};
export type DenotableValue =
| null
@@ -32,6 +37,7 @@ export type DenotableValue =
| string
| Uint8Array
| DenotableFunction
+ | DenotableRecord
| Identifier;
export type Denotable = {