wescande
|
4ea6fb5801
|
Merge remote-tracking branch 'origin/glob_bquote'
|
2017-02-20 19:18:23 +01:00 |
|
wescande
|
10596c48d9
|
optimisation du backquotting + mise a la norme
|
2017-02-20 19:11:52 +01:00 |
|
ariard@student.42.fr
|
2e012b3e91
|
if elif ok, else coming
|
2017-02-20 17:20:34 +01:00 |
|
ariard@student.42.fr
|
3d65d42708
|
grammar if stable
|
2017-02-20 16:07:54 +01:00 |
|
wescande
|
169aa62b7e
|
rectif nombreuses issues + ajout de l'expansion des backquote
|
2017-02-20 15:31:13 +01:00 |
|
ariard@student.42.fr
|
f6aefd7739
|
grammar if then elif part one
|
2017-02-19 19:32:45 +01:00 |
|
ariard@student.42.fr
|
fbce14ef34
|
modifs gestion d'erreur
|
2017-02-19 16:55:06 +01:00 |
|
Jack Halford
|
694744bf0c
|
PIPESINGLE macro was wrong
|
2017-02-19 15:18:46 +01:00 |
|
gwojda
|
923ffa1ea0
|
correction free history + crash potentiel sur la table de hash
|
2017-02-19 12:02:34 +01:00 |
|
ariard@student.42.fr
|
6609e3b8d9
|
while one nest ok
|
2017-02-18 20:10:42 +01:00 |
|
gwojda
|
480c9810c9
|
ajout builtin hash + ajout rehash si access ne fonctionne pas sur path donné dans la table
|
2017-02-18 16:52:55 +01:00 |
|
gwojda
|
ea073dceaf
|
correction segv edition de ligne + ajout table de hash
|
2017-02-18 14:42:43 +01:00 |
|
ariard@student.42.fr
|
96e439b652
|
parsing while simple ok
|
2017-02-17 23:43:44 +01:00 |
|
ariard@student.42.fr
|
4ef7af6e20
|
while error check doing
|
2017-02-17 19:49:12 +01:00 |
|
ariard@student.42.fr
|
b0a3e63ffc
|
modif redirect list
|
2017-02-17 17:15:58 +01:00 |
|
Jack Halford
|
b8bf58fbab
|
doing some bquote expansion fix
|
2017-02-17 15:49:03 +01:00 |
|
gwojda
|
0e1595101b
|
commit merge
|
2017-02-17 11:15:32 +01:00 |
|
AntoHesse
|
7f83e231aa
|
&& ||
|
2017-02-17 02:38:56 +01:00 |
|
M600
|
61b193013e
|
Refreshed documentation on autocompletion module
|
2017-02-16 22:19:56 +01:00 |
|
M600
|
46d7e7ce4e
|
Fix completion nested in the command
|
2017-02-16 18:05:21 +01:00 |
|
AntoHesse
|
7477cb4c0d
|
debug exec ou parsing
|
2017-02-16 17:35:44 +01:00 |
|
AntoHesse
|
beb3723122
|
conflict ok
|
2017-02-16 17:04:37 +01:00 |
|
AntoHesse
|
90457ec703
|
before pull
|
2017-02-16 17:02:37 +01:00 |
|
M600
|
2abdf8c925
|
Advanced research update early version. Fix a few bugs.
|
2017-02-16 15:21:23 +01:00 |
|
M600
|
fbecb59a14
|
Reworked colors and fix a few bugs. Still missing advanced research
|
2017-02-16 15:21:23 +01:00 |
|
gwojda
|
3dfc6abb61
|
correction de quelques bugs sur le prompt - correction de segv sur env - correction de leaks
|
2017-02-16 12:46:42 +01:00 |
|
ariard@student.42.fr
|
185ed2ebd3
|
gen ast en cours
|
2017-02-15 20:58:41 +01:00 |
|
ariard@student.42.fr
|
fc37e7999a
|
Merge branch 'pda' of https://github.com/jzck/minishell into pda
"work last night"
|
2017-02-15 18:31:49 +01:00 |
|
ariard@student.42.fr
|
78a2dafe50
|
before merge with clean dir
|
2017-02-15 18:31:37 +01:00 |
|
gwojda
|
b67c7fd7d3
|
ajout d'env avec opt -i -u / export / unset
|
2017-02-15 15:46:43 +01:00 |
|
Jack Halford
|
73f12e7e96
|
merged heredoc support; moved history/ into src/ because of makefile
problems
|
2017-02-15 07:06:57 +01:00 |
|
AntoHesse
|
8e05bba1c6
|
less code is better
|
2017-02-15 02:22:05 +01:00 |
|
Jack Halford
|
c764027070
|
heredoc starting to work; goto do multiple heredoc and execution part
|
2017-02-14 20:32:34 +01:00 |
|
ariard@student.42.fr
|
0040a07ce9
|
bitwise pour exclure next_token malvenu
|
2017-02-14 19:09:30 +01:00 |
|
gwojda
|
71f13249b8
|
recollage de l'historique + control R + point d'exclamation. quelques fixes pour le prompt
|
2017-02-14 15:45:17 +01:00 |
|
Jack Halford
|
be6be17f2a
|
bquotes expansion refactoring for future norm checks; still need to preventh field splitting for dquoted bquotes; also need to fuse bquote expansion into the globbing module
|
2017-02-14 00:42:41 +01:00 |
|
ariard@student.42.fr
|
fd951302a3
|
combinaison pipe et simple ok
|
2017-02-13 23:00:05 +01:00 |
|
Jack Halford
|
2e0b6102ce
|
bquotes expand correctly but segfault afterwards...
|
2017-02-13 15:31:21 +01:00 |
|
ariard@student.42.fr
|
582087186f
|
a lot of grammar
|
2017-02-12 21:09:23 +01:00 |
|
ariard@student.42.fr
|
2a70b3f702
|
moar moar moar grammar
|
2017-02-12 19:19:16 +01:00 |
|
ariard@student.42.fr
|
a07ed6eea7
|
moaaaar grammar
|
2017-02-12 18:47:16 +01:00 |
|
Jack Halford
|
742a99440e
|
backslash should work, also keep NL when they are quoted
|
2017-02-12 18:11:59 +01:00 |
|
AntoHesse
|
6601e2111f
|
moar moar grammar
|
2017-02-12 04:09:36 +01:00 |
|
AntoHesse
|
516e1dade5
|
enforcement grammar part 1
|
2017-02-12 02:40:34 +01:00 |
|
ariard@student.42.fr
|
30494f2df2
|
moar grammar
|
2017-02-10 20:08:46 +01:00 |
|
Jack Halford
|
0a1fd7e518
|
dquotes->bquotes
|
2017-02-10 13:38:49 +01:00 |
|
Jack Halford
|
6ec9f9295e
|
initial implementation looks ok, parenthesis needs fix
|
2017-02-10 05:19:26 +01:00 |
|
ariard@student.42.fr
|
1358c367e6
|
jack a raison: les enums ca marche..
|
2017-02-10 01:43:20 +01:00 |
|
Jack Halford
|
e8cd4f45b0
|
started to work on lexer_stack
|
2017-02-10 00:38:45 +01:00 |
|
ariard@student.42.fr
|
87b7d65d71
|
archi ok, test struct de grammaire
|
2017-02-09 20:34:09 +01:00 |
|
ariard@student.42.fr
|
e7a7fc04df
|
proto parser en cours
|
2017-02-09 18:10:28 +01:00 |
|
ariard@student.42.fr
|
ebc57c0da8
|
parser as a pushdown automata, test
|
2017-02-09 16:06:05 +01:00 |
|
ariard@student.42.fr
|
5ec1e4c29f
|
before test pushdown automata
|
2017-02-08 23:28:18 +01:00 |
|
Jack Halford
|
c5263b51d0
|
Merge branch 'random_fixes'
|
2017-02-08 22:49:01 +01:00 |
|
Jack Halford
|
5a033a8789
|
fcntl for saving fds, new option to distinguish interactive shell or not
|
2017-02-08 22:48:37 +01:00 |
|
wescande
|
6c8ea86a24
|
ajout memrealloc et modif token_append sur les char esc et esc2
|
2017-02-08 18:46:16 +01:00 |
|
wescande
|
c2d979012a
|
rectif du ./ dans le glob + optim du nb de result dans le cas de recherche cross-dir
|
2017-02-07 19:53:12 +01:00 |
|
Jack Halford
|
28acb3b814
|
removed lexer_var and prototype
|
2017-02-07 18:14:57 +01:00 |
|
Jack Halford
|
b613f9fb89
|
conflicts resolved
|
2017-02-07 18:06:30 +01:00 |
|
Jack Halford
|
a01b7b76ab
|
redirection now works with builtins!
|
2017-02-07 17:57:52 +01:00 |
|
wescande
|
6648487f4a
|
mergeing of branch var expansion
|
2017-02-07 17:40:10 +01:00 |
|
wescande
|
7610136d18
|
expansion des variables ok, fait a l'execution et plus dans le lexer (laissé en commentaire dans le lexer)
|
2017-02-07 17:22:39 +01:00 |
|
Jack Halford
|
060800769b
|
lexer_comment done
|
2017-02-07 12:57:46 +01:00 |
|
Jack Halford
|
c56f9dac85
|
lexer_comment back onto master
|
2017-02-07 12:38:04 +01:00 |
|
Jack Halford
|
d7f5116eb0
|
looks promising
|
2017-02-07 02:07:47 +01:00 |
|
Jack Halford
|
bb52d35f4d
|
starting to fix redirects
|
2017-02-06 23:49:58 +01:00 |
|
ariard@student.42.fr
|
46ccf47755
|
loop read again if script modifierd
|
2017-02-06 22:04:21 +01:00 |
|
ariard@student.42.fr
|
c0977b20ff
|
until exec ok
|
2017-02-06 21:02:37 +01:00 |
|
ariard@student.42.fr
|
490f81ee23
|
exec if + elif + else ok to-do:syntax error
|
2017-02-06 19:48:17 +01:00 |
|
ariard@student.42.fr
|
a211bfd1b0
|
parsing if/elsif stable
|
2017-02-06 17:59:48 +01:00 |
|
Jack Halford
|
5cac33e7cf
|
Merge branch 'master' of https://github.com/jzck/minishell
|
2017-02-06 17:01:23 +01:00 |
|
Jack Halford
|
156e1cb29c
|
file redirections repaired
|
2017-02-06 16:51:34 +01:00 |
|
wescande
|
fe57e9e520
|
rectif du segv sur {} + modification de la gestion des {} (ordre + qd chaine unique) + ajout de fonction pours les chars esc (set_char_esc | set_char_no_esc | set_char_esc_mode
|
2017-02-06 15:38:10 +01:00 |
|
ariard@student.42.fr
|
9bb45abb3d
|
currently parsing if, to-do:syntax error, clean code& interactive shell
|
2017-02-06 00:05:32 +01:00 |
|
ariard@student.42.fr
|
63b25532b3
|
parsing loop presque
|
2017-02-05 19:38:46 +01:00 |
|
gwojda
|
f63737a90c
|
changement des couleurs du prompt - correction leger bug sur le backslash
|
2017-02-05 17:45:17 +01:00 |
|
ariard@student.42.fr
|
cd2019c0fd
|
fucking newline to parse
|
2017-02-05 00:15:12 +01:00 |
|
gwojda
|
c77af3da9f
|
mise a jour des parentheses/accolades
|
2017-02-04 18:28:05 +01:00 |
|
gwojda
|
288acbb378
|
mise a la norme edition de ligne - heredoc mal géré
|
2017-02-04 16:29:28 +01:00 |
|
ariard@student.42.fr
|
9bbd6d7403
|
do as a sep + multiple newline
|
2017-02-04 15:52:07 +01:00 |
|
ariard@student.42.fr
|
0a5143bd69
|
multi loop ok, to-do : do as a separator(lexing), in case of multisep after do delete all (parsing), before while inspect after done (parsing)
|
2017-02-03 20:03:54 +01:00 |
|
gwojda
|
08710f9e6b
|
merge
|
2017-02-03 18:40:27 +01:00 |
|
gwojda
|
86fc221cb4
|
heredoc - historique avec point d'exclamation - sortie plus propre avec control D - historique ne prend plus en compte deux commandes consecutives egales
|
2017-02-03 18:38:22 +01:00 |
|
Jack Halford
|
065aacaadd
|
removed debug messages from completion
|
2017-02-03 17:36:07 +01:00 |
|
Jack Halford
|
12d069d26b
|
fix des problemes de compilations post-merge
|
2017-02-03 16:28:47 +01:00 |
|
Jack Halford
|
593258dff2
|
merged lexer-hotfix
|
2017-02-03 16:23:54 +01:00 |
|
Jack Halford
|
2f647b820f
|
no more skipping delims before lexing, removed superfluous headers from lib, readded do_job_notifications before prompt
|
2017-02-03 16:15:55 +01:00 |
|
m600x
|
6ab0634d4c
|
Reworked autocompletion multichoice
|
2017-02-03 15:49:03 +01:00 |
|
ariard@student.42.fr
|
fcea6dda9b
|
scripting stable before new lexing and parsing(merged with master)
|
2017-02-03 15:41:14 +01:00 |
|
Jack Halford
|
585d469324
|
lexer skips delims before starting to tokenize
|
2017-02-03 15:15:38 +01:00 |
|
m600x
|
cb9fe01c3e
|
Merging
|
2017-02-03 15:14:02 +01:00 |
|
m600x
|
fff7a872e6
|
Pre-Merge
|
2017-02-03 15:08:32 +01:00 |
|
gwojda
|
c0918e8e6b
|
quoting + backslash + backquotes + parentheses + accolades revu : normalement ca marche. On va tenter d'ajouter la completion
|
2017-02-03 15:04:54 +01:00 |
|
Jack Halford
|
f4efbdd313
|
hotfix, forget to check compilation
|
2017-02-03 14:56:30 +01:00 |
|
ariard@student.42.fr
|
e708ce1e16
|
merge resolved
|
2017-02-03 14:44:35 +01:00 |
|
Jack Halford
|
da66e7bd79
|
Merge branch 'redirection-fix'
|
2017-02-03 14:42:41 +01:00 |
|
m600x
|
9f15e9b4c7
|
Content of data->line.input and data->line.pos updated
|
2017-02-03 14:15:46 +01:00 |
|
Jack Halford
|
62be4bc470
|
new architecture for redirection inside of fork(), chained redirects dont work properly yet
|
2017-02-03 14:11:34 +01:00 |
|
Jack Halford
|
985745f881
|
starting to fixi redirections
|
2017-02-03 13:21:06 +01:00 |
|
m600x
|
f43f11cd14
|
Rebase init
|
2017-02-03 12:36:25 +01:00 |
|
gwojda
|
7fb9aa2da5
|
changement du squelette (passage a un tableau de pointeur sur fonction) - pas encore tout resté
|
2017-02-02 19:07:32 +01:00 |
|
Jack Halford
|
7265a6c340
|
cleaner main, added ft_lexer to encapsulate all phases of tokenization
|
2017-02-02 15:45:55 +01:00 |
|
Jack Halford
|
b08b727779
|
orphan backquotes and orpan parens generate parse errors
|
2017-02-02 15:28:18 +01:00 |
|
Jack Halford
|
073ef322e4
|
fixed backquotes
|
2017-02-02 14:57:30 +01:00 |
|
gwojda
|
97ac417f81
|
ajout d'un fichier pour garder l'historique des utilisations precedentes (.42sh_history dans le dossier du 42sh) + gestion du resize de fenetre
|
2017-02-02 13:40:20 +01:00 |
|
Jack Halford
|
d5c830d347
|
Merge branch 'job-control-fix'
|
2017-02-02 01:21:16 +01:00 |
|
Jack Halford
|
0d8610ca65
|
exit statuses behave correctly now (like bash)
|
2017-02-02 00:56:16 +01:00 |
|
wescande
|
cd7b4cde7c
|
merge de la suppression de leaks
|
2017-02-01 19:52:36 +01:00 |
|
wescande
|
9641ed9dbb
|
suppression d'un malheureux leaks + opti recursivite
|
2017-02-01 19:50:32 +01:00 |
|
Jack Halford
|
62cdc4ca84
|
back to looking like the GNU tutorial
|
2017-02-01 17:30:45 +01:00 |
|
Gautier WOJDA
|
feac290fee
|
Comportement de control C/D mise a jour (avec le bruit d'erreur pour control D) -- mise a jour de l'edition de lignes, quelques bugs resolus (merci wescande :p)
|
2017-02-01 16:54:15 +01:00 |
|
ariard@student.42.fr
|
f33d2be526
|
lexing if ok
|
2017-02-01 00:00:27 +01:00 |
|
wescande
|
43f1295324
|
finition sur le globbing (expansion des accolades, gestion des characteres echappe) => normalement aucun bug + mise a la norme
|
2017-01-31 23:25:41 +01:00 |
|
ariard@student.42.fr
|
b0dececf1f
|
loop_del
|
2017-01-31 22:52:36 +01:00 |
|
ariard@student.42.fr
|
73b4cc3060
|
resolution empty tree + nested loop + while error lexing
|
2017-01-31 22:12:49 +01:00 |
|
wescande
|
3c8c143143
|
merge de extend_glob. Ajout de la barre de progression dans le makefile
|
2017-01-31 19:52:04 +01:00 |
|
wescande
|
ad7d814c74
|
extension du globbing implemente SUPER MAKEFILE QUI DECHIRE TA M*RE
|
2017-01-31 19:36:29 +01:00 |
|
Jack Halford
|
e7e93fa533
|
correction de la norme sur tout le moude job-control
|
2017-01-31 15:11:26 +01:00 |
|
ariard@student.42.fr
|
0dc029406f
|
exec while ok nxt: resoudre bug empty tree
|
2017-01-30 23:47:05 +01:00 |
|
ariard@student.42.fr
|
000ae4116a
|
generation subtree test_commands + consequent_commands
|
2017-01-30 19:31:34 +01:00 |
|
ariard@student.42.fr
|
2212c927f8
|
ast with while ok next:execution while
|
2017-01-30 17:23:55 +01:00 |
|
wescande
|
3c46e10736
|
integration du retour de glob dans les tokens
|
2017-01-30 17:19:09 +01:00 |
|
wescande
|
77b94ee8ce
|
merge de globbing on master
|
2017-01-30 13:09:41 +01:00 |
|
wescande
|
7cfa1a4837
|
finalisation norme
|
2017-01-30 12:23:13 +01:00 |
|
ariard@student.42.fr
|
42bd66af42
|
generation liste chainee d'ast de multi commande ok, to-do : ast de while
|
2017-01-28 23:39:59 +01:00 |
|
Jack Halford
|
90bd6820c3
|
some function shrinking for norme
|
2017-01-28 20:24:54 +01:00 |
|
Jack Halford
|
279509a651
|
merged and fixed conflicts
|
2017-01-28 19:25:25 +01:00 |
|
wescande
|
4f5c65b9a2
|
finalisation du lexer avec les char echappé -> 1 unsigned char pour 8 char du token (1 bit pour 1 char). Module glob en place en tenant compte des echappé. fonction is_char_esc en place pour une utilisation plus globale
|
2017-01-28 01:19:03 +01:00 |
|
wescande
|
45bc317f97
|
working on esc character in token
|
2017-01-27 20:13:13 +01:00 |
|
Jack Halford
|
cc2fadf41c
|
variables assigning passes initial testing, needs more testing
|
2017-01-27 19:40:36 +01:00 |
|
Gautier WOJDA
|
d6c6103bc4
|
avant de merge
|
2017-01-27 17:42:46 +01:00 |
|
ariard@student.42.fr
|
47a2fdd683
|
doing, parsing newline et generation liste chaine d arbre binaire
|
2017-01-26 22:43:47 +01:00 |
|
Jack Halford
|
7d57b47f5e
|
end of day, still doesnt work properly
|
2017-01-26 20:32:39 +01:00 |
|
Jack Halford
|
26625dd1b1
|
commit pour cleanup la merde de wescande sur git........
|
2017-01-26 19:39:39 +01:00 |
|
wescande
|
c3c47e9a5a
|
ajout du ** en mode tmp. Besoin de votre avis dessus. segfault sur la ligne de commande mais doi etre rebase pour savoir d'ou ca vient
|
2017-01-26 19:24:00 +01:00 |
|
wescande
|
c556b0eea5
|
ajout de la recherche recursive sur le globbing et du chemin absolu. (/*/*/*) toujours pas de gestion du double star (**)
|
2017-01-26 19:24:00 +01:00 |
|
wescande
|
6102eda2df
|
ajout de l'expand des brace, reste a travailler sur le tri du tableau de retour pour l'avoir par ordre ascii
|
2017-01-26 19:24:00 +01:00 |
|
wescande
|
87b70c8358
|
le match fonctionne avec les [ab], les [a-z] les [^ ou avec le ! a-z] et Il manque encore le * et les {}. Gestion du ~ a ajouter aussi
|
2017-01-26 19:24:00 +01:00 |
|
wescande
|
977238f69e
|
premier commit. working. . .
|
2017-01-26 19:24:00 +01:00 |
|
Jack Halford
|
9d2e01de25
|
some progress on c_cc[VTIME] understading, almost there
|
2017-01-26 18:41:07 +01:00 |
|
Gautier WOJDA
|
bd33e1c9f2
|
ajout du control + R pour la recherche dans l'historique (j'ai prit pour exemple bash), et du \ en cas de \ en fin de ligne
|
2017-01-26 14:17:07 +01:00 |
|
ariard@student.42.fr
|
bcaa2fb943
|
lexing while_clause, passage en buffer dynamique au readscript todo tomorrow
|
2017-01-26 01:00:03 +01:00 |
|
Gautier WOJDA
|
3dd298b9c4
|
debut mise a la norme/nettoyage
|
2017-01-25 20:34:28 +01:00 |
|
Jack Halford
|
d3fd7bbded
|
termios stuff added
|
2017-01-25 18:13:15 +01:00 |
|
Gautier WOJDA
|
485f1bb619
|
gestion des
|
2017-01-25 15:12:59 +01:00 |
|
ariard@student.42.fr
|
a011f94bcb
|
comment same bug that with a space in input execution, tree empty cause bug execution
|
2017-01-24 20:17:46 +01:00 |
|
ariard@student.42.fr
|
ca8fb52d34
|
add lst_find_until + exec script multilines ok
|
2017-01-24 18:08:32 +01:00 |
|
Gautier WOJDA
|
691eef6800
|
Ajout de la gestion des heredocs (pas testé a fond, push avant de partir)
|
2017-01-24 17:22:56 +01:00 |
|
Gautier WOJDA
|
5d09281cb1
|
Ajout du fichier pour afficher l'historique
|
2017-01-24 15:38:10 +01:00 |
|
ariard@student.42.fr
|
0431add79c
|
modifs readscript + token newline
|
2017-01-24 01:27:25 +01:00 |
|