Commit graph

274 commits

Author SHA1 Message Date
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
bb9796f758 merge 2017-03-14 21:12:08 +01:00
Jack Halford
4572a81c5a export finished, added cliopts 2017-03-14 21:11:28 +01:00
gwojda
4084439f7d rip leaks 2017-03-14 17:07:59 +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
de167920e5 test 2017-03-13 17:51:13 +01:00
Jack Halford
eb466c6c70 merge 2017-03-13 17:42:58 +01:00
Jack Halford
047f77abd6 issue #91 2017-03-13 17:42:00 +01:00
Antoine Riard
1a8f32286d pipe ok with control flow 2017-03-13 16:59:31 +01:00
Antoine Riard
0f50556720 pipe ok with control flow 2017-03-13 16:56:09 +01:00
Jack Halford
f01a770b29 pas d'ajout a l'historique pour les lignes vides 2017-03-13 16:42:56 +01:00
Jack Halford
3ae1cf2100 merge resolved 2017-03-13 16:24:25 +01:00
Jack Halford
6b78971807 heredoc changes 2017-03-13 16:11:46 +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
bfb7c13e94 fix historique 2017-03-13 14:29:23 +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
Jack Halford
4f7b69b283 ca segfault avec cette ligne 2017-03-12 15:29:35 +01:00
Antoine Riard
2e137390be with show me heredoc data 2017-03-11 19:57:27 +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
971da39d1b fixed subshells normally 2017-03-11 16:06:39 +01:00
Antoine Riard
a2628f4302 new parsing des if 2017-03-10 18:09:13 +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
beab4ff174 fixing pipes 2017-03-10 15:41:01 +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
Antoine Riard
5e5a4a122a parsing tk_bang && brace_clause} 2017-03-09 19:48:34 +01:00
Antoine Riard
8eb20e36aa correction aggregation + gestion erreur de syntax - heredoc en meme temps 2017-03-09 18:39:53 +01:00
Antoine Riard
5590af97a4 correction grammar + bug func declaration + error syntax better 2017-03-09 16:06:55 +01:00
Jack Halford
843dafe91e issue #75 2017-03-09 14:31:52 +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
791b99e469 last commit 2017-03-08 23:18:55 +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
794a3f9936 heredoc changes to lexer done 2017-03-08 15:53:10 +01:00
Jack Halford
95be4e209c stuff 2017-03-08 14:52:44 +01:00
Jack Halford
8528951041 heredoc changes first step 2017-03-08 13:48:58 +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
Antoine Riard
37970c7274 ft_lstdup 2017-03-08 01:47:40 +01:00
gwojda
b4e7d8ab5e mise a la norme edition de ligne 2017-03-07 17:37:32 +01:00
Jack Halford
c8793578d6 merge 2017-03-07 16:41:10 +01:00
Jack Halford
2a215a6506 launch_file and launch_builtin 2017-03-07 16:40:09 +01:00
Antoine Riard
86fcb41c2f end pull 2017-03-07 15:54:51 +01:00
Antoine Riard
74b9f83779 renforcement stack + correction erreur syntax 2017-03-07 15:52:54 +01:00
Jack Halford
7018cfc326 no more atexit, we call builtin_exit at end of main or at ctrl D 2017-03-07 15:25:28 +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
Antoine Riard
9f87126762 pull ok 2017-03-06 17:59:07 +01:00
Antoine Riard
8873f31f79 protection stack symbolique 2017-03-06 17:57:51 +01:00
wescande
c42357efa3 merge of stuff 2017-03-06 16:22:01 +01:00
wescande
d3821b9ac7 some correctif 2017-03-06 16:20:06 +01:00
AntoHesse
2b5b23e981 execution case without extension 2017-03-06 02:11:03 +01:00
Antoine Riard
9e0c2bd906 merged done 2017-03-05 16:50:27 +01:00
Antoine Riard
2b456eac9c rectification cleanage code 2017-03-05 16:40:22 +01:00
Jack Halford
77ed38038a merged 2017-03-05 16:33:11 +01:00
Jack Halford
ee883b38a9 parens and curly braces lexing OK 2017-03-05 16:30:48 +01:00
william
eb6e104812 compilation sous linux possible, mise en commentaire des variables set but not used 2017-03-05 15:44:12 +01:00
Jack Halford
9a038e9290 && || seem to work now 2017-03-05 15:19:18 +01:00
Antoine Riard
56b106ee0f gen ast cleand 2017-03-04 22:08:31 +01:00
Antoine Riard
7d660fec7c execution if/elif/else + while ok 2017-03-04 18:02:38 +01:00
Antoine Riard
3dc47431ba gestion error ok + moar grammar pipe 2017-03-04 16:51:38 +01:00
AntoHesse
0f684e6189 clean instruction (token, parser, error) whatever succes or error, still issue lexing after syntax error 2017-03-04 02:51:52 +01:00
Antoine Riard
b4fdc05f64 ast free 2017-03-03 20:12:57 +01:00
Antoine Riard
29692ef8fa ast free 2017-03-03 20:02:53 +01:00
Jack Halford
f62ef4d9c0 reading from files now works 2017-03-03 19:47:06 +01:00
Jack Halford
8b88d41ed9 trying to make files work 2017-03-03 19:05:42 +01:00
wescande
4c44407b65 correctif on some stuff + ajout framework for test 2017-03-03 18:49:39 +01:00
Jack Halford
bc40339015 merged more stuff 2017-03-03 18:06:04 +01:00
Jack Halford
783cd963e4 merged things 2017-03-03 18:05:17 +01:00
Jack Halford
03c62f69a6 stuff 2017-03-03 18:03:17 +01:00
wescande
e9d0324189 merge correcitf segv 2017-03-03 18:00:43 +01:00
wescande
6775120264 protection de segv au lancement du shell (redirection entrante & nom de fichier non valid) 2017-03-03 17:59:39 +01:00
Jack Halford
2ad34631e3 parentheses dont trigger more input after lexing 2017-03-03 17:58:08 +01:00
Jack Halford
2926a9d00d merged pda_execution 2017-03-03 17:33:36 +01:00
Jack Halford
418859e9e8 it compiles ! much more testing for simple commands to work 2017-03-03 16:51:18 +01:00
Antoine Riard
37d9898f59 doing pipe + lst cmds 2017-03-02 22:02:53 +01:00
Jack Halford
3857b06785 execution much simpler with new parser, thx ariard! 2017-03-02 21:17:16 +01:00
Jack Halford
62d3ef01d2 merged pda 2017-03-02 12:37:15 +01:00
ariard@student.42.fr
722a290aee yale sauf subshell 2017-03-01 23:01:43 +01:00
ariard@student.42.fr
aa9097575d rewef 2017-03-01 18:04:29 +01:00
ariard@student.42.fr
f5fafb4c19 before pull 2017-03-01 16:25:53 +01:00
Jack Halford
03152a9e2b conflicts resolved 2017-02-28 21:40:22 +01:00
Jack Halford
ca1e060463 fixed problem with redirection lexing 2017-02-28 18:53:58 +01:00