diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-27 18:23:42 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-27 18:24:07 +0530 |
commit | 119012f284233587f6622669da2b76da7fd073e2 (patch) | |
tree | 4c48899c8890e97bf061d23ef87884b316b359ae /include/lexer.h | |
parent | 2870df21c361d00650c026f9c98ab70107d496f5 (diff) |
lexer: for->eachdo
Diffstat (limited to 'include/lexer.h')
-rw-r--r-- | include/lexer.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/lexer.h b/include/lexer.h index b9dbf1c..4621f6f 100644 --- a/include/lexer.h +++ b/include/lexer.h @@ -12,8 +12,8 @@ typedef enum { CONTENTFOR, ENDCONTENT, BODY, - FOR, - ENDFOR + EACHDO, + ENDEACHDO } directive_e; typedef struct { @@ -35,9 +35,8 @@ typedef struct { typedef struct { char *key; - char *source; char *content; -} for_operand_t; +} eachdo_operands_t; list_t *lex(char *buffer); directive_t *find_directive(char *content, key_match_t *match); @@ -57,9 +56,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); +void lexer_handle_eachdo(directive_t *directive, + key_match_t *match, + char *buffer, + size_t n); #endif |