diff options
| author | Mel <einebeere@gmail.com> | 2022-05-27 00:09:27 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-27 00:09:27 +0000 |
| commit | c2d4bf51de9a2d721168c62b14b89f5281ed366e (patch) | |
| tree | 09329cd24249e46fe6660fa9bd1f0efac29af38f /pkg/lang/vm/mem/cell.go | |
| parent | 3f4efe745a0404953266476ec52db54b182de2f8 (diff) | |
| download | jinx-c2d4bf51de9a2d721168c62b14b89f5281ed366e.tar.zst jinx-c2d4bf51de9a2d721168c62b14b89f5281ed366e.zip | |
VM ARC
Diffstat (limited to 'pkg/lang/vm/mem/cell.go')
| -rw-r--r-- | pkg/lang/vm/mem/cell.go | 16 |
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 +} |
