From eeeeed44a9c7e8bd2f6a579bcace1f90d8a040ec Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 9 Oct 2020 12:42:31 +0200 Subject: Fixing parenthesis leak in parser, Fixing crash on empty input --- src/lexer/lexer.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/lexer') diff --git a/src/lexer/lexer.c b/src/lexer/lexer.c index 466e360..9b947f4 100644 --- a/src/lexer/lexer.c +++ b/src/lexer/lexer.c @@ -6,7 +6,7 @@ /* By: nahaddac +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/07/16 08:18:25 by nahaddac #+# #+# */ -/* Updated: 2020/10/08 09:21:55 by cacharle ### ########.fr */ +/* Updated: 2020/10/09 12:29:32 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -108,22 +108,9 @@ t_tok_lst *create_token_list(char *input, t_tok_lst **lst) int lexer(char *input, t_tok_lst **out) { int status; - /* t_tok_lst *curr; */ - if (!input) - return (2); *out = NULL; *out = create_token_list(input, out); status = lexer_trim(*out); - /* curr = *out; */ - /* while (curr != NULL) */ - /* { */ - /* if (!(curr->tag & TAG_IS_STR)) */ - /* { */ - /* free(curr->content); */ - /* curr->content = NULL; */ - /* } */ - /* curr = curr->next; */ - /* } */ return (status); } -- cgit