From 22a69393f58abcf3bcf9e7039f994dae78422213 Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 27 Jul 2022 11:01:29 +0000 Subject: Implement VM modules and globals --- pkg/lang/vm/code/pos.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pkg/lang/vm/code/pos.go (limited to 'pkg/lang/vm/code/pos.go') diff --git a/pkg/lang/vm/code/pos.go b/pkg/lang/vm/code/pos.go new file mode 100644 index 0000000..90deb33 --- /dev/null +++ b/pkg/lang/vm/code/pos.go @@ -0,0 +1,13 @@ +package code + +type Pos struct { + Module int + PC int +} + +func NewPos(module int, pc int) Pos { + return Pos{ + Module: module, + PC: pc, + } +} \ No newline at end of file -- cgit 1.4.1