Skip to content

Commit fc283c6

Browse files
committed
add .txt
1 parent 48a96e5 commit fc283c6

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
*.a
22
minishell
33
a.out*
4-
*.txt
4+
# *.txt
55
.vscode
66
.DS_Store
77
*.o

srcs/parser/BNF.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<command line> ::= '\n' | <piped sequence> '\n'
2+
3+
<piped sequence> ::= <command> | <command> '|' <piped sequence>
4+
5+
<command> ::= <arguments>
6+
7+
<arguments> ::= <argument> | <argument> <arguments>
8+
9+
<argument> ::= <redirection> | <string>
10+
11+
<string> ::= <expandable> no_space <string>
12+
| <expandable>
13+
| <not expandable> no_space <string>
14+
| <not expandable>
15+
| <expandable quoted> no_space <string>
16+
| <expandable quoted>
17+
18+
<redirection> ::= '<' filename
19+
| '>' filename
20+
| ">>" filename
21+
| "<<" heredoc_end
22+
23+
<expandable> ::= /* implementation-defined */
24+
<not expandable> ::= /* implementation-defined */
25+
<expandable quoted> ::= /* implementation-defined */
26+
<filename> ::= /* implementation-defined */
27+
<heredoc_end> ::= /* implementation-defined */

0 commit comments

Comments
 (0)