Implemented a bunch more combinators

This commit is contained in:
Dan Hirsch 2012-05-13 01:01:26 +01:00
parent 0e9bcb31ca
commit 3afe324aaa
5 changed files with 212 additions and 70 deletions

View file

@ -102,7 +102,7 @@ static void unamb_sub(const parsed_token_t* tok, struct result_buf *buf) {
append_buf(buf, "<>", 2);
else {
for (size_t i = 0; i < tok->bytes.len; i++) {
const char *HEX = "0123456789ABCDEF";
const char *HEX = "0123456789abcdef";
append_buf_c(buf, (i == 0) ? '<': '.');
char c = tok->bytes.token[i];
append_buf_c(buf, HEX[(c >> 4) & 0xf]);