From 4ad25e7fe330df66725bf74a662a49bcd31b8a8a Mon Sep 17 00:00:00 2001 From: nass1pro Date: Mon, 13 Jul 2020 14:55:46 +0200 Subject: test error gestion --- src/lexer/lexer.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/lexer/lexer.c') diff --git a/src/lexer/lexer.c b/src/lexer/lexer.c index 47dedc6..3bf9dc2 100644 --- a/src/lexer/lexer.c +++ b/src/lexer/lexer.c @@ -8,12 +8,7 @@ int len_is_not_sep(char *input) while(input[++i]) { if (lexer_sep(input[i])) - { - //if (input[i + 1] == ' ') - // while(input[++i] == ' ') - // ; return(i); - } if (input[i] == '\'' || input[i] == '"') return(i); if (input[i] == ' ') @@ -31,8 +26,8 @@ int check_input(char *input) int i; i = 0; - /* if (input[i] == '(' || input[i] == ')') */ - /* return (i + 1); */ + if (input[i] == '(' || input[i] == ')') + return (i + 1); if (lexer_sep(input[i])) { while(input[i] == input[i + 1]) -- cgit