reflexion sur parsing

This commit is contained in:
hugogogo
2021-10-14 00:51:52 +02:00
parent 651d0e355e
commit 5577b6ac86
2 changed files with 73 additions and 12 deletions

View File

@@ -10,18 +10,67 @@
- unset
- env
- ~~exit~~
- ' _(ignore any special characters)_ --> [ressource](https://linuxhandbook.com/quotes-in-bash/)
- " _(ignore any special characters except '$')_
-
-
-
-
-
-
-
-
-
-
- ' *(ignore any special characters)* --> [ressource](https://linuxhandbook.com/quotes-in-bash/)
- " *(ignore any special characters except '$')*
- unclosed quotes ?
- **redirection :**
- > *input*
- > *output*
- << *read input until empty line -- doesn't update history*
- >> *redirect and append*
- |
- $
- $?
- **signals :**
- ^C *close process*
- ^D *exit minishell*
- ^\ *do nothing*
- history
--> [source of a minishell with an interesting README](https://git.42l.fr/Fabien/minishell)
---
[methode arbre binaire](https://fr.wikipedia.org/wiki/Arbre_binaire#Transformation_d'un_arbre_quelconque_en_un_arbre_binaire)
```
EXEMPLE :
'something "is 'new'" here'
something is new here
is new
new
'something "is"'new' here'
something is
new
here
ARCHITECTURE :
all
. pipes
. . redirections (program or file)
. . . arguments (nom arg arg arg ...)
. . . . special characters ($)
. . . . .
EXEMPLE : . . .
[sort < ./prgrm 'arg1 '$VARIABLE" arg3" | grep "word.$EXTENSION" | wc -l > file]
. [sort < ./prgrm 'arg1 '$VARIABLE" arg3"]
. . [sort] .
. . [./prgrm 'arg1 '$VARIABLE" arg3"]
. . . [./prgrm]
. . . ['arg1 ']
. . . [$VARIABLE]
. . . . [$VARIABLE]
. . . [" arg3"]
. [grep "word.$EXTENSION"]
. . . [grep]
. . . ["word.$EXTENSION"]
. . . . [$EXTENSION]
. [wc -l > file]
. . [wc -l]
. . . [wc]
. . . [-l]
. . [file]
```
---

12
echo Normal file
View File

@@ -0,0 +1,12 @@
builds
echo
headers
libft
Makefile
minishell
minishell.en.subject.pdf
README.md
ressources
srcs
tests
valgrind_readline.supp