tout tout tout debus parsing bonus
This commit is contained in:
6
Makefile
6
Makefile
@ -6,7 +6,7 @@
|
||||
# By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2023/07/28 00:35:01 by tomoron #+# #+# #
|
||||
# Updated: 2024/03/27 17:26:09 by tomoron ### ########.fr #
|
||||
# Updated: 2024/03/27 18:29:50 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -34,7 +34,9 @@ SRCS_RAW = main.c\
|
||||
pipe.c\
|
||||
utils.c\
|
||||
utils2.c\
|
||||
signal_handler.c
|
||||
signal_handler.c\
|
||||
parsing_bonus.c
|
||||
|
||||
|
||||
OBJS_DIR = objs/
|
||||
SRCS_DIR = srcs/
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/04 17:31:38 by tomoron #+# #+# */
|
||||
/* Updated: 2024/03/27 18:28:48 by tomoron ### ########.fr */
|
||||
/* Updated: 2024/03/27 19:50:37 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -25,16 +25,32 @@
|
||||
# include <stdint.h>
|
||||
# include <termios.h>
|
||||
|
||||
typedef enum e_cmd_type
|
||||
{
|
||||
PIPE,
|
||||
CMD,
|
||||
PAREN,
|
||||
AND,
|
||||
OR
|
||||
}
|
||||
|
||||
typedef struct s_cmd
|
||||
{
|
||||
t_cmd_type cmd_type;
|
||||
char *value;
|
||||
stuct s_cmd *next;
|
||||
} t_cmd;
|
||||
|
||||
typedef enum e_token_type
|
||||
{
|
||||
ARG,
|
||||
PIPE,
|
||||
RED_O,
|
||||
RED_O_APP,
|
||||
RED_I,
|
||||
HERE_DOC,
|
||||
HERE_DOC
|
||||
} t_token_type;
|
||||
|
||||
|
||||
typedef struct s_token
|
||||
{
|
||||
t_token_type type;
|
||||
|
@ -6,8 +6,9 @@
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/27 14:40:44 by tomoron #+# #+# */
|
||||
/* Updated: 2024/03/27 17:20:51 by tomoron ### ########.fr */
|
||||
/* Updated: 2024/03/27 20:08:38 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "minishell.h"
|
||||
|
||||
|
Reference in New Issue
Block a user