Commit graph

32 commits

Author SHA1 Message Date
73d691c0b4 parsing: refactor group_or_simple_parse into group_cmd_parse.c 2025-04-16 13:08:50 +02:00
dd30b44b93 parsing: refactor minishell_opt_cmds_parse into own file 2025-04-16 13:03:49 +02:00
81ba53237c parsing: do not reset last_return_value at start of parsing
we need to preserve it, to be able to show the return value from the last command
2025-04-15 15:45:29 +02:00
5716c4b3dc parsing: pass correct arguments to prevent use-after-free 2025-04-15 15:15:30 +02:00
4de1d0024a parsing: refactor out the last two functions needed to pass the norm 2025-04-15 14:41:43 +02:00
5e84e9a111 parsing: remove (at least some) dead code 2025-04-15 14:41:43 +02:00
218be08049 parsing: refactor group_cmd_parse into own file 2025-04-15 14:41:43 +02:00
b7871be426 parsing: refactor minishell_optional_pipeline_parse into own file 2025-04-15 14:41:43 +02:00
811ce3ef8e parsing: refactor minishell_simple_cmd_parse into own file 2025-04-15 14:41:43 +02:00
9a58198303 parsing: refactor minishell_redirect_parse to own file 2025-04-15 14:41:43 +02:00
d4197fec38 parsing: create specialised function to create a t_cmd 2025-04-15 14:41:43 +02:00
fde0bf4dc9 parsing: refactor: simple norm linecount gains 2025-04-15 14:41:43 +02:00
055dabc546 parsing: add newline at end of error message 2025-04-15 14:41:43 +02:00
dbba36dc44 parsing: split minishell_group_or_simple_parse 2025-04-15 14:41:43 +02:00
86e658fcca parsing: rename minishell_group_or_smp_parse -> minishell_group_or_simple_parse 2025-04-15 14:41:43 +02:00
283458b24f parsing: put redirect specific functions into own file 2025-04-15 14:41:43 +02:00
54f6c2a609 parsing: remove debugs 2025-04-15 14:41:43 +02:00
0c489f25bb parsing: fix some easy leaks 2025-04-15 14:41:43 +02:00
d40b6c3586
debug, destroy all new types (also some code for testing it) 2025-04-15 14:41:43 +02:00
53693e171e parsing: do not use a builder struct
since only one field was being used, just pass that field around
2025-04-14 14:53:31 +02:00
7425195350 norm: fix all easy issues 2025-04-14 14:44:42 +02:00
1c9653a5a5 parsing: parse redirections 2025-04-14 14:44:42 +02:00
1866da6ea6
fix: make it compile 2025-04-11 16:57:31 +02:00
Jérôme Guélen
4baad88a44
parse-cmd: Only redirections left to parse. 2025-04-10 18:57:04 +02:00
Jérôme Guélen
926774846f
parse-cmd: Almost done but stopped by the gong 2025-04-08 19:56:46 +02:00
Jérôme Guélen
d0cea8828d
parse-cmd: Mainly adding destructors and a token type. 2025-04-08 16:29:57 +02:00
Jérôme Guélen
72714855f7
parse-cmd: fixes and partial norm. 2025-04-08 13:08:43 +02:00
Jérôme Guélen
10a3c9c411
parse-cmd: Various fixes and a rotation of the parsing tree 2025-04-08 12:14:38 +02:00
Jerome
90d213bf98 parse-cmd: Slow start. Ideas starting to coalesce. 2025-04-06 21:52:33 +02:00
Jerome
1a22a39336 parse-cmd: fix typo and grammar.md appearance 2025-04-06 15:49:52 +02:00
Jérôme Guélen
fea514ea63 parse-cmd: Just a forgotten check to be reviewed later. 2025-04-06 15:49:52 +02:00
Jérôme Guélen
5f95751b36 parse-cmd: A very basic skeleton of functions to come 2025-04-06 15:49:52 +02:00