aboutsummaryrefslogtreecommitdiff
path: root/include/ms_parse.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-30 16:41:54 +0200
committerCharles <sircharlesaze@gmail.com>2020-03-30 16:41:54 +0200
commit74787eefa2ac85d85b484d0ca5dffc6a2a13331d (patch)
tree61000ecb790c31ec317f0f7758db4e2595e3bfbc /include/ms_parse.h
parentffec9915be37ceebeadeb12958cbb7424cbd3633 (diff)
downloadminishell-74787eefa2ac85d85b484d0ca5dffc6a2a13331d.tar.gz
minishell-74787eefa2ac85d85b484d0ca5dffc6a2a13331d.tar.bz2
minishell-74787eefa2ac85d85b484d0ca5dffc6a2a13331d.zip
Added Doxyfile
Diffstat (limited to 'include/ms_parse.h')
-rw-r--r--include/ms_parse.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/ms_parse.h b/include/ms_parse.h
index 9e28ed6..74604e5 100644
--- a/include/ms_parse.h
+++ b/include/ms_parse.h
@@ -16,6 +16,19 @@
# include "minishell.h"
/*
+** Context free grammar:
+**
+** redir_in ::= '<' <string>
+** redir_out ::= '>' <string>
+** redir_append ::= '>>' <string>
+** string ::= '\'' .+ '\'' | '"' .+ '"' | [^ ]+
+** sep ::= '&&' | '||' | '|' | ';'
+** expr ::= <redir_in> | <redir_out> | <redir_append> | <string>
+** sexpr ::= <expr>+
+** line ::= <sexpr> <sep> <line> | <sexpr>
+*/
+
+/*
** TAG_CMD: command name
** TAG_ARG: command argument
** TAG_ENDCMD: `;`