about summary refs log tree commit diff
path: root/pkg/lang/vm/code/pos.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/vm/code/pos.go')
-rw-r--r--pkg/lang/vm/code/pos.go13
1 files changed, 13 insertions, 0 deletions
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