diff options
Diffstat (limited to 'include')
| -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 |
