diff options
| author | 2023-02-08 04:15:54 +0000 | |
|---|---|---|
| committer | 2023-02-08 04:15:54 +0000 | |
| commit | 606814c4c079fc51102d4aa69079bbfb67b6f4b0 (patch) | |
| tree | 5b93e620d5d3d2f88a4d3df81547553cc3c7701f /creole.h | |
| parent | move tests (diff) | |
python ffi: test parsing
Diffstat (limited to '')
| -rw-r--r-- | creole.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 */ |
