summaryrefslogtreecommitdiff
path: root/src/bytecode.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-03-09 22:00:13 -0500
committerAdrian Thurston <thurston@colm.net>2018-03-09 22:05:02 -0500
commit2efdd395cd3b1cee4ee6cb00ec31c4d3e06df64c (patch)
tree0f7f826cf910daceb607e617fb0164d359ea14d9 /src/bytecode.h
parent45c895e7cf7c1bde0aa5b4d863c3c6c088604c70 (diff)
downloadcolm-2efdd395cd3b1cee4ee6cb00ec31c4d3e06df64c.tar.gz
allow switching on production numbers
Added a form to case statements that accepts a production name instead of a pattern.
Diffstat (limited to 'src/bytecode.h')
-rw-r--r--src/bytecode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bytecode.h b/src/bytecode.h
index 34bf991b..cb5d1a06 100644
--- a/src/bytecode.h
+++ b/src/bytecode.h
@@ -104,6 +104,7 @@ typedef unsigned char uchar;
#define IN_REJECT 0x21
#define IN_MATCH 0x22
+#define IN_PROD_NUM 0x6a
#define IN_CONSTRUCT 0x23
#define IN_CONS_OBJECT 0xf0
#define IN_CONS_GENERIC 0xf1
@@ -369,6 +370,7 @@ typedef unsigned char uchar;
#define IN_CONST_ARG 0x13
+
/*
* IN_FN instructions.
*/