aboutsummaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/lexer.c26
-rw-r--r--src/parse/parse.c18
2 files changed, 44 insertions, 0 deletions
diff --git a/src/parse/lexer.c b/src/parse/lexer.c
new file mode 100644
index 0000000..2aa8a6f
--- /dev/null
+++ b/src/parse/lexer.c
@@ -0,0 +1,26 @@
+/*
+** \file lexer.c
+** \brief Lexer
+*/
+
+#include "minishell.h"
+
+/* static char **lex_len(char *input) */
+/* { */
+/* int i; */
+/* */
+/* i = 0; */
+/* while(input[i] != '\0') */
+/* { */
+/* lex_comp_cmd(input); */
+/* i++; */
+/* } */
+/* } */
+
+/* char **lexer(char *input) */
+/* { */
+/* if (!input) */
+/* return (NULL); */
+/* lex_len(input); */
+/* return (NULL); */
+/* } */
diff --git a/src/parse/parse.c b/src/parse/parse.c
new file mode 100644
index 0000000..a0da5d9
--- /dev/null
+++ b/src/parse/parse.c
@@ -0,0 +1,18 @@
+/*
+** \file parse.c
+** \brief Parser
+*/
+
+#include "parse.h"
+
+t_ast *parse(char **input)
+{
+ /* int i = 0; */
+
+ (void)input;
+ /* while (input[i] != '\0') */
+ /* { */
+ /* */
+ /* } */
+ return NULL;
+}