diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-06-19 11:53:16 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-06-19 11:53:16 +0530 |
commit | 7698d438f594665661edf90964f92591b7a29556 (patch) | |
tree | 7c92c3ff429c15a1b97ec13c125f1f32e8613f76 /include/lexer.h | |
parent | bfdbb1e1316225f5bff0309a1b9008dcff567cf5 (diff) |
(misc): modularize program
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 |