From 579a26f5593039ffbbd1a81e45ecf0ef8797cb5d Mon Sep 17 00:00:00 2001 From: nass1pro Date: Tue, 9 Jun 2020 19:48:34 +0200 Subject: add lexer add single quote --- test_mini/parse/parse.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test_mini/parse/parse.c (limited to 'test_mini/parse/parse.c') diff --git a/test_mini/parse/parse.c b/test_mini/parse/parse.c new file mode 100644 index 0000000..4f2be38 --- /dev/null +++ b/test_mini/parse/parse.c @@ -0,0 +1,25 @@ + +#include "parse.h" +#include + + +t_return *parse(t_return *nw, char **input) +{ + int i; + + i = 0; + verif_part(input, ';'); + //printf("%s\n","salut"); + return (nw); +} + +t_return *parse_nw(char **input) +{ + t_return *nw; + + if (!(nw = malloc(sizeof(t_ast)))) + exit(0); + nw->rest = input; + parse(nw, input); + return (nw); +} -- cgit