From b15ab562d74b5111ac7c9bd6e0ec185435902472 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 31 Mar 2020 21:41:33 +0200 Subject: Removing ms_ prefix, Removing junk --- include/ms_parse.h | 92 ------------------------------------------------------ 1 file changed, 92 deletions(-) delete mode 100644 include/ms_parse.h (limited to 'include/ms_parse.h') diff --git a/include/ms_parse.h b/include/ms_parse.h deleted file mode 100644 index 0a33ccf..0000000 --- a/include/ms_parse.h +++ /dev/null @@ -1,92 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ms_parse.h :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cacharle +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/02/28 09:00:00 by cacharle #+# #+# */ -/* Updated: 2020/02/28 14:57:58 by cacharle ### ########.fr */ -/* */ -/* ************************************************************************** */ - -#ifndef MS_PARSE_H -# define MS_PARSE_H - -# include "minishell.h" -# include "ast.h" - -/** -** \file ms_parse.h -** \brief Input parsing and AST manipulation -** -** Context free grammar: -** ``` -** redir_in ::= '<' -** redir_out ::= '>' -** redir_append ::= '>>' -** string ::= '\'' .+ '\'' | '"' .+ '"' | [^ ]+ -** sep ::= '&&' | '||' | '|' | ';' -** expr ::= | | | -** cmd ::= + -** line ::= | -** ``` -*/ - -/** -** \brief AST node tag -** \param TAG_STRING string -** \param TAG_SEP `;` | `|` | `&&` | `||` -** \param TAG_REDIR_OUT `>` -** \param TAG_REDIR_IN `<` -** \param TAG_REDIR_APPEND `>>` -*/ - -// typedef enum -// { -// TAG_STRING, -// TAG_SEP, -// TAG_REDIR_OUT, -// TAG_REDIR_IN, -// TAG_REDIR_APPEND, -// TAG_CMD, -// TAG_LINE, -// } t_ast_tag; - -/** -** \brief AST (Abstract Syntax Tree) -** \param tag tag (type) of node -** \param content substring of the parsed string which corespond to tag -** \param children_num number of children -** \param children children nodes -*/ - -// typedef struct s_ast -// { -// t_tag tag; -// char* content; -// int children_num; -// struct s_ast** children; -// } t_ast; - -/* -** lexer.c -*/ - -char **ms_lexer(char *input); - -/* -** parse.c -*/ - -t_ast *ms_parse(char *input); - -/* -** ast.c -*/ - -// t_ast *ms_ast_new(t_tag tag); -// void ms_ast_destroy(t_ast *ast); -// void ms_ast_iter(t_ast *ast, void (*f)(void *f_arg, t_ast *children), void *arg); - -#endif -- cgit