From 119012f284233587f6622669da2b76da7fd073e2 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 27 Jul 2025 18:23:42 +0530 Subject: lexer: for->eachdo --- include/lexer.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'include') 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 -- cgit v1.2.3