reflexion sur parsing
This commit is contained in:
73
README.md
73
README.md
@@ -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]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user