summaryrefslogtreecommitdiffstats
path: root/opcode_list.h
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-13 15:00:05 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-13 15:00:05 +0100
commit8c708f3c7aece2429adb626c9031b3e2de5051c3 (patch)
treebf06bc8c68044f829c35e27228737a91b8a8b544 /opcode_list.h
parentb0e65d149f76c081d5840b4156b9a13516429732 (diff)
Refactor path logic.
Diffstat (limited to 'opcode_list.h')
-rw-r--r--opcode_list.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/opcode_list.h b/opcode_list.h
index f384d715..91a6aba1 100644
--- a/opcode_list.h
+++ b/opcode_list.h
@@ -1,7 +1,6 @@
OP(LOADK, CONSTANT, 1, 1)
OP(DUP, NONE, 1, 2)
OP(DUP2, NONE, 2, 3)
-OP(SWAP, NONE, 2, 2)
OP(POP, NONE, 1, 0)
OP(LOADV, VARIABLE, 1, 1)
OP(STOREV, VARIABLE, 1, 0)
@@ -15,7 +14,11 @@ OP(BACKTRACK, NONE, 0, 0)
OP(APPEND, VARIABLE,1, 0)
OP(INSERT, NONE, 4, 2)
-OP(GETPATH, NONE, 2, 1)
+OP(SUBEXP_BEGIN, NONE, 1, 2)
+OP(SUBEXP_END, NONE, 2, 2)
+
+OP(PATH_BEGIN, NONE, 1, 2)
+OP(PATH_END, NONE, 2, 1)
OP(CALL_BUILTIN, CFUNC, -1, 1)