Commit graph

105 commits

Author SHA1 Message Date
matteo
c7822a2534 feat(main_loop): subshell start 2026-01-31 20:05:19 +01:00
matteo
a7065a1d9f feat: subshell total support 2026-01-31 19:55:02 +01:00
william.valenduc
45d97fcc3f feat(utils): hash_map_free_ast 2026-01-31 18:30:28 +00:00
matteo
5eed5fa65f feat: ast_subshell 2026-01-31 19:25:42 +01:00
matteo
4d01199e21 fix(ast_function): ast_function_free does not free the ast data 2026-01-31 17:06:42 +01:00
Jean
46dbc7ad6b Merge branch 'dev' of gitlab.cri.epita.fr:guillem.george/42sh into dev 2026-01-31 15:41:52 +01:00
Jean
182e31b42e fix(chaipa): Remove pretty print to avoid clang-tidy / added the options in echo 2026-01-31 15:40:46 +01:00
matteo
7a370b1dfa Merge branch 'parser' into dev 2026-01-31 13:26:14 +01:00
matteo
132f4f3a53 feat(parser + ast): function parsing support 2026-01-31 13:24:44 +01:00
Matteo Flebus
3cd231f031 fix: build and .sh test file for functions 2026-01-31 12:53:23 +01:00
matteo
a550f9747e feat(ast): ast_function 2026-01-31 11:57:51 +01:00
Gu://em_
f31fca4204 feat: full while/until loops support, important bug fixes and more tests 2026-01-30 23:43:49 +01:00
Gu://em_
d6e6bfacf2 feat: Merge branch 'parser' into dev 2026-01-30 21:32:57 +01:00
Gu://em_
b663655d53 fix: strdup a la con 2026-01-30 21:27:23 +01:00
Matteo Flebus
828b0e8be3 fix: coverage tests and hash_map_free on NULL 2026-01-30 20:28:38 +01:00
Matteo Flebus
4d271981df merge parser into dev with ast loops 2026-01-30 19:57:36 +01:00
Matteo Flebus
32c35c4bf7 fix: add dependencies in Makefile for new ast 2026-01-30 19:55:09 +01:00
Gu://em_
423793903d feat: while and for loops support for parser, plus new ASTs, new tokens and fixes inside parser 2026-01-30 19:48:31 +01:00
Matteo Flebus
aa45e3d30f feat: export handling, except exec 2026-01-30 19:37:05 +01:00
matteo
52d35cf355 fix: memory issues, parser errors and get_ast_if returning always NULL 2026-01-30 17:42:42 +01:00
matteo
5740195cb3 fix: heap-use-after-free and memory leaks on erorr cases 2026-01-30 17:42:42 +01:00
matteo
f8b91d4da3 fix: memory issues, parser errors and get_ast_if returning always NULL 2026-01-30 16:51:10 +01:00
matteo
3fa7b97282 fix: heap-use-after-free and memory leaks on erorr cases 2026-01-30 12:21:29 +01:00
william.valenduc
f0b39535fb feat(utils): lists tests 2026-01-29 20:35:56 +00:00
matteo
028d4312af feat: fuckning working 2026-01-29 20:29:02 +01:00
Jean
6ca10b673a feat(compiling en fait): Execution 2026-01-29 19:35:08 +01:00
matteo
08803bd591 fix(ast_command): ast_list redir -> list redir 2026-01-29 19:20:29 +01:00
matteo
98d18eef7d fix: ast_redir and ast_assignment accorded for every part 2026-01-29 18:46:11 +01:00
Jean
ec63be42e5 fix(execution): Reimplemented the redirection logic 2026-01-29 18:18:04 +01:00
william.valenduc
a98161d885 fix(ast)!: assignment typo 2026-01-29 11:40:55 +00:00
matteo
fe3c4243c8 Revert "feat(ast_assignement): changed (name, value) to assignement"
This reverts commit ac77d79a60.
2026-01-29 11:37:20 +01:00
matteo
ac77d79a60 feat(ast_assignement): changed (name, value) to assignement 2026-01-29 11:32:15 +01:00
matteo
fde653ac5d feat(ast): add ast_assignements. Similar to how redirections are handled. 2026-01-29 09:56:28 +01:00
matteo
9a0f9bc6f1 fix: redirections types 2026-01-28 11:34:29 +01:00
Matteo Flebus
399d1ed3e1 feat(redirections): ast commands now have a field for the list of redirections + redirections implemented in parser 2026-01-27 21:06:36 +01:00
Matteo Flebus
8a5c589742 feat(parser): redirections 2026-01-27 19:56:33 +01:00
Matteo Flebus
13018e0a03 fix: small bugs to make it compile 2026-01-27 18:00:59 +01:00
Matteo Flebus
7614370d00 feat(parser): implementing redirections... 2026-01-27 16:17:40 +01:00
Matteo Flebus
d52f603eec fix: changed puts to perror + redirections in parser 2026-01-27 16:05:11 +01:00
Gu://em_
96626d9850 feat: toujours les mêmes qui font les pipes. Plus de assert dans ASTs (pour des raisons évidentes de stabilité du code) et nouveaux types (AST_PIPE et AST_NEG), + modifs random dans le parser 2026-01-27 00:30:19 +01:00
Matteo Flebus
d707c6180b merge new parser into dev 2026-01-26 18:40:10 +01:00
matteo
5ce56702a4 Merge branch 'execution' into dev 2026-01-24 17:46:44 +01:00
Jean
9276e1a8a5 Fixed the length of the execution function 2026-01-24 17:35:06 +01:00
william.valenduc
32d38c0d13 feat(vars): $@ and $* init 2026-01-24 16:03:25 +00:00
william.valenduc
00c2b9c979 fix(lists): restored lists in splitted files 2026-01-24 15:24:07 +00:00
william.valenduc
07d345f754 feat(vars): $# init 2026-01-24 14:51:27 +00:00
Gu://em_
32f56beb6b feat: redirection rules 2026-01-24 15:34:10 +01:00
matteo
71fadb1b4a fix: clang tidy + made static what could be instead of malloc 2026-01-24 12:55:11 +01:00
william.valenduc
67ffea83d3 feat(vars): $UID 2026-01-23 17:13:41 +00:00
william.valenduc
7bcf48f63e feat(args): $0, $1, ... in vars 2026-01-23 17:05:56 +00:00