aboutsummaryrefslogtreecommitdiff
path: root/include/ms_parse.h
diff options
context:
space:
mode:
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: `;`