diff options
Diffstat (limited to 'include/lexer.h')
-rw-r--r-- | include/lexer.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/lexer.h b/include/lexer.h new file mode 100644 index 0000000..8f7aab1 --- /dev/null +++ b/include/lexer.h @@ -0,0 +1,19 @@ +#ifndef __LEXER_H +#define __LEXER_H + +typedef enum { INCLUDE } directive_e; + +typedef struct { + unsigned int offset; + unsigned int length; +} key_match_t; + +typedef struct { + directive_e type; + void *operands; +} directive_t; + +directive_t *find_directive(char *content, key_match_t *match); +key_match_t *find_next_key(char *buffer); + +#endif |