aboutsummaryrefslogtreecommitdiffstats
path: root/creole.h
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2023-02-08 04:15:54 +0000
committerGravatar Peter McGoron 2023-02-08 04:15:54 +0000
commit606814c4c079fc51102d4aa69079bbfb67b6f4b0 (patch)
tree5b93e620d5d3d2f88a4d3df81547553cc3c7701f /creole.h
parentmove tests (diff)
python ffi: test parsing
Diffstat (limited to '')
-rw-r--r--creole.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/creole.h b/creole.h
index 579f787..da6b662 100644
--- a/creole.h
+++ b/creole.h
@@ -34,7 +34,12 @@ enum creole_word_flag {
enum creole_compiler_ret {
CREOLE_COMPILE_OK,
- CREOLE_COMPILE_PARSE_ERROR,
+ CREOLE_OPCODE_READ_ERROR,
+ CREOLE_OPCODE_MALFORMED,
+ CREOLE_ARG_READ_ERROR,
+ CREOLE_ARG_MALFORMED,
+ CREOLE_LAST_READ_ERROR,
+ CREOLE_LAST_MALFORMED,
CREOLE_LABEL_OVERFLOW,
CREOLE_TYPE_ERROR,
CREOLE_COMPILE_RET_LEN
@@ -65,4 +70,9 @@ struct creole_reader {
size_t left;
};
+int creole_encode(creole_word i, unsigned encode_to, unsigned high_bits,
+ unsigned char buf[7]);
+enum creole_compiler_ret
+creole_parse_line(struct creole_ins *ins, struct creole_reader *r);
+
#endif /* CREOLE_H */