summaryrefslogtreecommitdiff
path: root/src/bytecode.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-07-07 12:36:30 +0800
committerAdrian Thurston <thurston@colm.net>2018-07-07 12:36:30 +0800
commitdeb9efc408109ad13846d2d6d3b1fe0e2f62ddf2 (patch)
tree9a6f10b24888673c52ff9d56a86a7e0ad02bfb04 /src/bytecode.h
parent13627232094ba6b31937448f011553f44b1f8519 (diff)
downloadcolm-deb9efc408109ad13846d2d6d3b1fe0e2f62ddf2.tar.gz
make it possible to set parser input before parsing
Make it possible to set the parser input (sourced from some other parser) the same way the parser context is set. Previously would "send" the input the same way a stream was sent, but this was inconsistent with how the system operates. The "send" of an input was actually a hack that replaced the input. We are not supporting recursing input structures. Just an input and underneath that possibly some streams or data.
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 6cb01c39..931f13af 100644
--- a/src/bytecode.h
+++ b/src/bytecode.h
@@ -261,6 +261,7 @@ typedef unsigned char uchar;
#define IN_PARSE_INIT_BKT 0xa1
#define IN_PARSE_FRAG_BKT 0xa6
+#define IN_SEND_NOTHING 0xa0
#define IN_SEND_TEXT_W 0x89
#define IN_SEND_TEXT_BKT 0x8a
@@ -305,6 +306,7 @@ typedef unsigned char uchar;
#define IN_LOAD_CONTEXT_BKT 0xcb
#define IN_SET_PARSER_CONTEXT 0xd0
+#define IN_SET_PARSER_INPUT 0x96
#define IN_SPRINTF 0xd6