update: added extremely basic parsing, only for separated environment variables
This commit is contained in:
38
include/parser.h
Normal file
38
include/parser.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* parser.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/10/22 19:03:51 by sede-san #+# #+# */
|
||||
/* Updated: 2025/10/23 13:31:09 by sede-san ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef PARSER_H
|
||||
# define PARSER_H
|
||||
|
||||
# include "minishell.h"
|
||||
|
||||
/******************************************************************************/
|
||||
/* Structures & Data Types */
|
||||
/******************************************************************************/
|
||||
|
||||
typedef struct s_command t_command;
|
||||
|
||||
typedef struct s_command
|
||||
{
|
||||
int argc;
|
||||
char **argv;
|
||||
} t_command;
|
||||
|
||||
/******************************************************************************/
|
||||
/* Functions */
|
||||
/******************************************************************************/
|
||||
|
||||
// parser.c
|
||||
|
||||
extern char *parse(char *line, t_minishell *minishell);
|
||||
|
||||
#endif /* PARSER_H */
|
||||
Reference in New Issue
Block a user