norm errors eliminated and parser modified

This commit is contained in:
Mthandazo Ndhlovu
2019-05-09 17:41:07 +02:00
parent 94145d3d17
commit ea99e7b1fc
10 changed files with 70 additions and 32 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/23 17:31:19 by tmaze #+# #+# */
/* Updated: 2019/05/06 07:39:55 by mndhlovu ### ########.fr */
/* Updated: 2019/05/09 17:39:33 by mndhlovu ### ########.fr */
/* */
/* ************************************************************************** */
@@ -64,6 +64,7 @@ typedef struct s_holder
int s_pos;
int error;
int s_error;
int state;
int e_error;
int v_error;
int l_error;
@@ -94,12 +95,14 @@ typedef struct s_lmdata
int lm_parser(t_lmdata *ldata
, t_holder *holder);
int lm_check_room_before(char **tab, t_holder *holder);
void lm_clear_unv(t_holder *holder, t_lmdata *ldata);
int lm_check_room_before(char **tab, t_holder *holder
, char **name);
void lm_clear_unv(t_holder *holder);
int lm_add_vertex(t_lmdata *ldata, char *raw, char flag
, t_holder *holder);
int lm_ext_conn(t_holder *holder, t_lmdata *data
, char *raw);
void lm_ext_conn_sub(t_holder *holder, t_temp *new_data);
int lm_init_src_dest(int *src, int *dest, t_lmdata *data
, char *raw);
int lm_find_index(t_lmdata *data, char *str);