diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/parser.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/parser.h b/src/include/parser.h new file mode 100644 index 0000000..f4a6c77 --- /dev/null +++ b/src/include/parser.h @@ -0,0 +1,22 @@ +#ifndef PARSER_H +#define PARSER_H + +extern int blen; + +enum btype { + BEGIN = 1, + END, OBJ, + + COLON, + + IDENTIFIER, VALUE +}; + +struct byte { + enum btype type; + char *value; +}; + +struct byte *parse(unsigned char *buf); + +#endif |