Commit graph

556 commits

Author SHA1 Message Date
Antoine Riard
6f58bb20b3 heredoc ok 2017-03-18 19:00:46 +01:00
Antoine Riard
3a58fcd715 no more from pop_stack and ast_free 2017-03-18 17:38:26 +01:00
wescande
ccaa9bc159 faut arreter de coder les builtin avec le cul 2017-03-18 04:16:17 +01:00
wescande
ac6aadc5b6 YOLOOOOOOOOOOOOOOOOOOOO 2017-03-18 00:54:05 +01:00
wescande
aba3713a04 yeay 2017-03-18 00:26:34 +01:00
Antoine Riard
50971a7e23 modifs math 2017-03-17 23:21:25 +01:00
Antoine Riard
a1cb831783 math correction 2017-03-17 23:17:48 +01:00
Jack Halford
6f4ecd2960 bquotes and '-c' work again 2017-03-17 21:16:54 +01:00
Jack Halford
043b0247b8 token and ast not in data_singleton() 2017-03-17 21:02:13 +01:00
Jack Halford
8427ab28bf lexer_assignment_word factorizating: it doesnt exist anymore... 2017-03-17 20:23:51 +01:00
Jack Halford
9bda99e139 ca compile deso deso 2017-03-17 19:46:11 +01:00
Antoine Riard
30cddb4983 Merge branch 'master' of https://github.com/jzck/42sh
"norme + correction syntax error"
2017-03-17 18:43:36 +01:00
Antoine Riard
7f236af741 correction syntax + mise a la norme parser 2017-03-17 18:43:21 +01:00
gwojda
9f538eabd1 rectif .h 2017-03-17 17:24:21 +01:00
gwojda
2e72ad114b fix bug completion lors du multiligne et positionné sur une ligne != de la premiere 2017-03-17 17:22:54 +01:00
gwojda
a40169e77b changement edition de line -> STR et POS vous nous manquez 2017-03-17 12:21:25 +01:00
gwojda
1dc4a51920 merge 2017-03-17 10:55:38 +01:00
Antoine Riard
1ad56ece41 master steady, merged end 2017-03-17 00:22:47 +01:00
Antoine Riard
ad3525b9d6 end merge 2017-03-17 00:15:40 +01:00
Antoine Riard
d4ef4b319a master steady with new main 2017-03-17 00:05:10 +01:00
Antoine Riard
10d30cedb1 merge en cours 2017-03-16 23:46:39 +01:00
Jack Halford
0c848e75d3 lexer NORM, bquote/dquote lexing refactoring 2017-03-16 23:17:33 +01:00
Antoine Riard
64d5500c8d main good 2017-03-16 22:30:02 +01:00
Jack Halford
2671bba0a4 removed lexer_lessand/greatand, some lexer norm 2017-03-16 19:08:49 +01:00
gwojda
037f968183 changement edition de ligne 2017-03-16 17:18:01 +01:00
Jack Halford
8ea584a42c redirection printing on job control 2017-03-16 16:39:33 +01:00
Jack Halford
3da58bcb52 cleanup 2017-03-16 15:47:04 +01:00
Jack Halford
bed9f1d6c2 mean cleanup 2017-03-16 15:04:21 +01:00
Jack Halford
6efd4c7e1f main refactoring 2017-03-16 14:20:44 +01:00
gwojda
1c8148af3f fixe somes history bugs 2017-03-16 12:42:00 +01:00
M600
c4df4b837b Norme for autocompletion module 2017-03-16 09:18:25 +01:00
Jack Halford
0cf371e58a merge 2017-03-15 22:03:26 +01:00
Jack Halford
85fbbe3d8a some norme, builtin_read refactoring 2017-03-15 21:54:30 +01:00
Antoine Riard
6401e1759f gestion d erreurs math builtin 2017-03-15 21:06:35 +01:00
Antoine Riard
a68ad0af01 func ok 2017-03-15 20:08:04 +01:00
Antoine Riard
95186a124f func ok: 2017-03-15 19:57:08 +01:00
gwojda
10ff285727 fixe some leaks 2017-03-15 16:38:04 +01:00
gwojda
dbdf84c00f fixe some leaks 2017-03-15 16:18:15 +01:00
gwojda
39d5b25084 fix bug completion resize sur fenetre minuscule 2017-03-15 14:40:19 +01:00
wescande
cdfac4c3fc fix merge 2017-03-15 03:53:37 +01:00
wescande
f2c3ae16e9 glob a la norme + close an issue 2017-03-15 03:35:05 +01:00
Antoine Riard
7637b2b886 modifs execution if 2017-03-15 02:11:37 +01:00
Antoine Riard
c45cb705b0 better parsing et exec case , for 2017-03-15 01:58:01 +01:00
Antoine Riard
a54bd77444 divers modifs + better tree case 2017-03-15 00:48:59 +01:00
Antoine Riard
fc8dcb8d24 divers modifs + better tree case 2017-03-15 00:47:56 +01:00
Jack Halford
4539837339 issue #82 quick fix, dont know if this is a good idea 2017-03-15 00:05:35 +01:00
Antoine Riard
de5f4b2a46 math builtin 2017-03-14 23:06:26 +01:00
Jack Halford
9cabd2fb2e forgot to commit 2017-03-14 23:00:42 +01:00
Antoine Riard
36e0522fb3 math as a builtin 2017-03-14 22:58:22 +01:00
Antoine Riard
8791eae9c3 math as a builtin 2017-03-14 22:49:44 +01:00
Jack Halford
c6a23fb2ac no more custom parsing, all is done w/ cliopts 2017-03-14 21:51:40 +01:00
Jack Halford
4572a81c5a export finished, added cliopts 2017-03-14 21:11:28 +01:00
gwojda
9545cb5e00 avec le header c'est mieux... 2017-03-14 13:51:06 +01:00
gwojda
c654e524f4 fix somes bugs #100 2017-03-14 12:14:06 +01:00
Antoine Riard
dc1662f754 modifs var 2017-03-14 00:55:16 +01:00
Antoine Riard
f02222d882 modifs var 2017-03-14 00:52:51 +01:00
Jack Halford
97a0a0f53f merge 2017-03-13 23:59:20 +01:00
Jack Halford
271748861e brace groups and subshell launching re-design 2017-03-13 23:58:17 +01:00
Antoine Riard
95cebeaded news parsing if and case 2017-03-13 22:51:07 +01:00
Antoine Riard
1c1c75934a news parsing if and case 2017-03-13 22:50:02 +01:00
Jack Halford
b7804d547a big refactoring of execution and process handling 2017-03-13 22:39:12 +01:00
Jack Halford
c167d80270 brace group execution done 2017-03-13 19:23:20 +01:00
Jack Halford
047f77abd6 issue #91 2017-03-13 17:42:00 +01:00
Jack Halford
3ae1cf2100 merge resolved 2017-03-13 16:24:25 +01:00
Antoine Riard
923416fdda subshell + heredoc correct 2017-03-13 15:03:46 +01:00
Jack Halford
163c93c0c2 issue #81, probleme de protection free historique, p-e resolu #77 aussi 2017-03-13 14:48:40 +01:00
Jack Halford
4a46f6db57 heredoc fix 2017-03-13 14:13:33 +01:00
Antoine Riard
5c6abae6dc pull ok 2017-03-13 14:08:40 +01:00
Antoine Riard
55b72823cb before pull 2017-03-13 14:06:54 +01:00
Jack Halford
9061e43bea new process group handling is goooooood 2017-03-12 22:01:25 +01:00
Antoine Riard
2e137390be with show me heredoc data 2017-03-11 19:57:27 +01:00
Jack Halford
230ff16f79 yes | head fixed 2017-03-11 18:33:09 +01:00
Antoine Riard
e8d4800f8c mise a la norme parser 2017-03-11 16:24:49 +01:00
Antoine Riard
729cf55cd3 grosse mise a la norme des func parser 2017-03-11 16:24:18 +01:00
Jack Halford
8c17daad57 Merge branch 'master' of https://github.com/jzck/minishell 2017-03-11 16:06:45 +01:00
Jack Halford
971da39d1b fixed subshells normally 2017-03-11 16:06:39 +01:00
Antoine Riard
7708a456a9 redir ok if + case 2017-03-11 15:21:11 +01:00
Antoine Riard
58c6491d23 parsing redir + struct control doing 2017-03-10 19:47:04 +01:00
Antoine Riard
63ed4b64f4 better parsing if 2017-03-10 18:10:15 +01:00
Antoine Riard
a2628f4302 new parsing des if 2017-03-10 18:09:13 +01:00
gwojda
e43f743d4c merge completion 2017-03-10 17:45:53 +01:00
gwojda
7e55dc5b7a merge completion 2017-03-10 17:45:01 +01:00
Jack Halford
27cc095b8e merged 2017-03-10 17:09:18 +01:00
Jack Halford
0a205229a8 pgid stuff, still must fix (ls) 2017-03-10 17:08:04 +01:00
Antoine Riard
0852e7c807 bang exec ok 2017-03-10 16:23:51 +01:00
Antoine Riard
e96638aca1 execution bang 2017-03-10 16:18:36 +01:00
Jack Halford
b7a1f9e92f Merge branch 'master' of https://github.com/jzck/minishell 2017-03-10 15:41:09 +01:00
Jack Halford
beab4ff174 fixing pipes 2017-03-10 15:41:01 +01:00
william
08fd57acb5 Merge branch 'master' of github.com:jzck/42sh 2017-03-10 15:09:44 +01:00
william
a1c26314e0 optimisation du glob sur les chaines vides + travail sur bquote mais marche po 2017-03-10 15:00:38 +01:00
Jack Halford
d051ccc127 redirection tweaks 2017-03-10 14:01:39 +01:00
Jack Halford
9361d965bc multiline heredoc in history 2017-03-10 13:29:00 +01:00
Jack Halford
7dd8b1861b issue #78 execution side done 2017-03-10 13:21:35 +01:00
Jack Halford
2659b68d28 issue #71 done (lexer problem) 2017-03-10 13:14:08 +01:00
Jack Halford
dd6817ff61 issues #71 , #72 2017-03-10 12:58:34 +01:00
M600
b8324bdc51 Add early arrow support 2017-03-10 10:00:43 +01:00
M600
328db0b260 Add rolling list 2017-03-10 08:48:21 +01:00
william
1119f98e20 Merge branch 'master' of github.com:jzck/42sh 2017-03-09 18:52:51 +01:00
william
460d51f451 rectif du tri du glob 2017-03-09 18:52:41 +01:00
Antoine Riard
8eb20e36aa correction aggregation + gestion erreur de syntax - heredoc en meme temps 2017-03-09 18:39:53 +01:00
gwojda
7508a136b2 on compile mnt 2017-03-09 17:35:42 +01:00
gwojda
0872af38f0 ajout module de glob + match sur les vars d'environnement 2017-03-09 17:29:55 +01:00
Antoine Riard
70372a4d85 Merge branch 'master' of https://github.com/jzck/42sh
"grammar better"
2017-03-09 16:06:59 +01:00
Antoine Riard
5590af97a4 correction grammar + bug func declaration + error syntax better 2017-03-09 16:06:55 +01:00
Jack Halford
a9799debda issue #72, tried to reset file descriptors but still not working 2017-03-09 15:24:00 +01:00
Jack Halford
6660c5ed2c issue #73 2017-03-09 14:35:49 +01:00
gwojda
01d8cbca7e correction bug sur control R + d'autres ptits trucs 2017-03-09 12:16:23 +01:00
Antoine Riard
762623f4a1 la c est bon 2017-03-09 00:21:25 +01:00
Antoine Riard
4d13a2e6e6 end merge 2017-03-08 23:44:03 +01:00
Antoine Riard
a8881bfed3 end 2017-03-08 23:20:28 +01:00
Antoine Riard
791b99e469 last commit 2017-03-08 23:18:55 +01:00
Jack Halford
c2952d577c hanged jobs printing and some other stuff 2017-03-08 20:58:34 +01:00
Jack Halford
1de7494d3d merged 2017-03-08 17:47:11 +01:00
Jack Halford
0d162c50f5 started rapiring jobc and heredoc lexer now OK' 2017-03-08 17:46:38 +01:00
wescande
029e1a1bbe Merge branch 'pda' of github.com:jzck/42sh into pda 2017-03-08 16:24:33 +01:00
wescande
86a733ffe5 ajout affichage du job control 2017-03-08 16:24:25 +01:00
Antoine Riard
6fa5153df2 end pull 2017-03-08 16:11:36 +01:00
Antoine Riard
fa82326823 before pull heredoc 2017-03-08 16:06:04 +01:00
Jack Halford
67bbc22fd7 fixed 2017-03-08 15:55:56 +01:00
Jack Halford
794a3f9936 heredoc changes to lexer done 2017-03-08 15:53:10 +01:00
wescande
145c116e18 ajout de reinitialisation du des exec dans les forks + correctif d'un segv sur free du subshell 2017-03-08 15:19:10 +01:00
Jack Halford
95be4e209c stuff 2017-03-08 14:52:44 +01:00
gwojda
301ec53259 j'avais fait des betises 2017-03-08 13:48:37 +01:00
gwojda
4d805a1c74 completion a partir de la racine ok (sauf si jai fait des betises) 2017-03-08 13:39:41 +01:00
Jack Halford
e711ffc927 issue #50 done 2017-03-08 13:07:46 +01:00
Jack Halford
8a46d9fe2a issue #48 first step 2017-03-08 12:44:09 +01:00
Jack Halford
8cba9bc113 issue #52: rewrote lexer_sep entirely 2017-03-08 12:21:13 +01:00
wescande
9f8f9bb729 normalement les fonctions sont fonctionnelles. necessitent plus de test. 2017-03-08 04:49:50 +01:00
wescande
b3e03c71c7 Merge branch 'pda' of github.com:jzck/42sh into pda 2017-03-08 03:10:50 +01:00
wescande
be78dfbdf8 commit pour recup lib & node_copy 2017-03-08 03:10:46 +01:00
Antoine Riard
cc5ba1dc75 pull done 2017-03-08 03:07:16 +01:00
Antoine Riard
bce509e19c wefwef 2017-03-08 03:05:01 +01:00
wescande
157519224d ajout des free en fonction du process 2017-03-08 02:40:58 +01:00
Antoine Riard
37970c7274 ft_lstdup 2017-03-08 01:47:40 +01:00
wescande
3a186407b1 working but no subshell 2017-03-08 01:45:29 +01:00
wescande
26222441cc ajout execution des while, if, for, case, until 2017-03-07 22:45:48 +01:00
wescande
bac6e9d6d8 permet de compiler 2017-03-07 21:25:40 +01:00
wescande
8c2103fa1b merge of the work 2017-03-07 21:01:33 +01:00
wescande
ad5bea849e working on job_control, need to catch Jack work's 2017-03-07 20:53:11 +01:00
Antoine Riard
69732b44fe conflcit resolved 2017-03-07 19:43:59 +01:00
Antoine Riard
02286b88bf moar grammmar 2017-03-07 19:41:25 +01:00
Jack Halford
6ef7a1289a compilation error 2017-03-07 18:38:20 +01:00
Jack Halford
764c62cc45 changed header layout 2017-03-07 18:37:13 +01:00
gwojda
b4e7d8ab5e mise a la norme edition de ligne 2017-03-07 17:37:32 +01:00
wescande
48dc3d7c70 recup merge + modif 2017-03-07 16:56:20 +01:00
wescande
29aff9ebb7 exec en cours 2017-03-07 16:43:32 +01:00
wescande
7195207116 merging 2017-03-07 15:35:36 +01:00
wescande
b2af159f64 pour merge 2017-03-07 15:12:20 +01:00
Jack Halford
eb9a697ef4 merged bt_jobs 2017-03-07 15:10:13 +01:00
Jack Halford
a5f186eb59 new process logic 2017-03-07 15:05:04 +01:00