From 89db6cf917002aab329ad35b89444fe1eab1d1f8 Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Tue, 5 Mar 2024 15:36:31 -0700 Subject: add naive record construction support --- src/interpreter/denotable.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/interpreter/denotable.ts') 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; +}; export type DenotableValue = | null @@ -32,6 +37,7 @@ export type DenotableValue = | string | Uint8Array | DenotableFunction + | DenotableRecord | Identifier; export type Denotable = { -- cgit v1.2.3-70-g09d2