aboutsummaryrefslogtreecommitdiff
path: root/src/parse/lexer.c
diff options
context:
space:
mode:
authornass1pro <nass1pro@gmail.com>2020-04-12 17:53:30 +0200
committerCharles <sircharlesaze@gmail.com>2020-06-09 10:53:38 +0200
commit9dca7dc98e46d5b29e236f2970072ffaf582e13e (patch)
treeba7b93052ff9d01c549ad5d16e7ba66daeacd686 /src/parse/lexer.c
parentf66cb8f28a2779159baeef6ea91a7684d59cc295 (diff)
downloadminishell-9dca7dc98e46d5b29e236f2970072ffaf582e13e.tar.gz
minishell-9dca7dc98e46d5b29e236f2970072ffaf582e13e.tar.bz2
minishell-9dca7dc98e46d5b29e236f2970072ffaf582e13e.zip
Added lexer draft
Diffstat (limited to 'src/parse/lexer.c')
-rw-r--r--src/parse/lexer.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/parse/lexer.c b/src/parse/lexer.c
index 74a3bd4..584ecd7 100644
--- a/src/parse/lexer.c
+++ b/src/parse/lexer.c
@@ -5,12 +5,23 @@
#include "minishell.h"
-char **lexer(char *input)
+static char **lex_len(char *input)
{
- char **out_lex;
+ int i;
+ i = 0;
+ while(input[i] != '\0')
+ {
+ lex_comp_cmd(input);
+ i++;
+ }
+}
+
+char **lexer(char *input)
+{
(void)out_lex;
if (!input)
return (NULL);
+ lex_len(input);
return (NULL);
}