From cadd588473f82cdbbfdb7210bddd22262561faf3 Mon Sep 17 00:00:00 2001 From: nass1pro Date: Sun, 14 Jun 2020 09:01:57 +0200 Subject: Add t_ret in ast.h --- src/parse/lexer.c | 26 -------------------------- src/parse/parse.c | 12 +++++------- 2 files changed, 5 insertions(+), 33 deletions(-) delete mode 100644 src/parse/lexer.c (limited to 'src/parse') diff --git a/src/parse/lexer.c b/src/parse/lexer.c deleted file mode 100644 index 2aa8a6f..0000000 --- a/src/parse/lexer.c +++ /dev/null @@ -1,26 +0,0 @@ -/* -** \file lexer.c -** \brief Lexer -*/ - -#include "minishell.h" - -/* static char **lex_len(char *input) */ -/* { */ -/* int i; */ -/* */ -/* i = 0; */ -/* while(input[i] != '\0') */ -/* { */ -/* lex_comp_cmd(input); */ -/* i++; */ -/* } */ -/* } */ - -/* char **lexer(char *input) */ -/* { */ -/* if (!input) */ -/* return (NULL); */ -/* lex_len(input); */ -/* return (NULL); */ -/* } */ diff --git a/src/parse/parse.c b/src/parse/parse.c index a0da5d9..6f9c99b 100644 --- a/src/parse/parse.c +++ b/src/parse/parse.c @@ -4,15 +4,13 @@ */ #include "parse.h" +#include -t_ast *parse(char **input) +t_ast *parse(t_ftlst *lst) { - /* int i = 0; */ + t_ret *ret; - (void)input; - /* while (input[i] != '\0') */ - /* { */ - /* */ - /* } */ + ret->rest = lst; + ret = return NULL; } -- cgit