diff options
| author | nass1pro <nass1pro@gmail.com> | 2020-06-14 09:39:13 +0200 |
|---|---|---|
| committer | nass1pro <nass1pro@gmail.com> | 2020-06-14 09:39:13 +0200 |
| commit | 1d455c5b8ba3ecd7fa0b0a5a6718bc6cd7fbd8d9 (patch) | |
| tree | d8f54d290f2e301ff689dae879305eee5d2a0394 /src/lexer/lexer_utils.c | |
| parent | cadd588473f82cdbbfdb7210bddd22262561faf3 (diff) | |
| download | minishell-1d455c5b8ba3ecd7fa0b0a5a6718bc6cd7fbd8d9.tar.gz minishell-1d455c5b8ba3ecd7fa0b0a5a6718bc6cd7fbd8d9.tar.bz2 minishell-1d455c5b8ba3ecd7fa0b0a5a6718bc6cd7fbd8d9.zip | |
Change LTAG -> TAG in lexer.h
Diffstat (limited to 'src/lexer/lexer_utils.c')
| -rw-r--r-- | src/lexer/lexer_utils.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lexer/lexer_utils.c b/src/lexer/lexer_utils.c index 986db50..c6bf54a 100644 --- a/src/lexer/lexer_utils.c +++ b/src/lexer/lexer_utils.c @@ -3,29 +3,29 @@ enum e_token_tag ret_token_sep_redir_append(char *input, int i) { if (input[i + 1] == '>') - return(LTAG_REDIR_APPEND); - return (LTAG_REDIR_OUT); + return(TAG_REDIR_APPEND); + return (TAG_REDIR_OUT); } enum e_token_tag ret_token(char *input, int i) { if (input[i] == ';') - return(LTAG_AND); + return(TAG_AND); if (input[i] == '&') - return(LTAG_END); + return(TAG_END); if (input[i] == '|' && input[i + 1] == '|') - return(LTAG_OR); + return(TAG_OR); if(input[i] == '|') - return(LTAG_PIPE); + return(TAG_PIPE); if (input[i] == '>') return(ret_token_sep_redir_append(input,i)); if (input[i] == '<') - return(LTAG_REDIR_IN); + return(TAG_REDIR_IN); if (input[i] == '(') - return(LTAG_PARENT_OPEN); + return(TAG_PARENT_OPEN); if (input[i] == ')') - return(LTAG_PARENT_CLOSE); + return(TAG_PARENT_CLOSE); return(0); } |
