aboutsummaryrefslogtreecommitdiff
path: root/include/lexer.h
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-27 16:40:31 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-27 16:40:31 +0530
commitc0282d19cc7a749b97925cc5d5237ad6b367b675 (patch)
tree7aacafe822c8344e360eeffd95cd33761816dddb /include/lexer.h
parenta363a4995f834e08b7f5f35a7db76d37bf67b935 (diff)
lexer: implement handle_for()
Diffstat (limited to 'include/lexer.h')
-rw-r--r--include/lexer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/lexer.h b/include/lexer.h
index 448d302..b9dbf1c 100644
--- a/include/lexer.h
+++ b/include/lexer.h
@@ -26,6 +26,7 @@ typedef struct {
void *operands;
} directive_t;
+/* TODO: strlen(content) instead of length? */
typedef struct {
char *key;
char *content;
@@ -56,5 +57,9 @@ void lexer_handle_content(directive_t *directive,
key_match_t *match,
char *buffer,
size_t n);
+void lexer_handle_for(directive_t *directive,
+ key_match_t *match,
+ char *buffer,
+ size_t n);
#endif