about summary refs log tree commit diff
path: root/pkg/lang/vm/mem/cell.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/vm/mem/cell.go')
-rw-r--r--pkg/lang/vm/mem/cell.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/lang/vm/mem/cell.go b/pkg/lang/vm/mem/cell.go
new file mode 100644
index 0000000..044a45c
--- /dev/null
+++ b/pkg/lang/vm/mem/cell.go
@@ -0,0 +1,16 @@
+package mem
+
+type CellKind int
+
+const (
+	CellKindEmpty CellKind = iota
+	CellKindString
+	CellKindArray
+	CellKindEscaped
+)
+
+type cell struct {
+	kind CellKind
+	refs int
+	data any
+}