From c2d4bf51de9a2d721168c62b14b89f5281ed366e Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 27 May 2022 00:09:27 +0000 Subject: VM ARC --- pkg/lang/vm/mem/cell.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pkg/lang/vm/mem/cell.go (limited to 'pkg/lang/vm/mem/cell.go') 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 +} -- cgit 1.4.1