Commit graph

298 commits

Author SHA1 Message Date
Matteo Flebus
bada9c6a29 fix: building now 2026-01-30 18:35:26 +01:00
Matteo Flebus
fcfc7fedc9 fix(clang-tidy): for clang, function cannot return bool if it takes no arguments ???? 2026-01-30 18:26:56 +01:00
matteo
fd59d63c47 fix(lexer): recongize OR as PIPE 2026-01-30 17:47:51 +01:00
Matteo Flebus
30e30f55e7 fix(lexer): ongoing-> recongize OR as PIPE 2026-01-30 17:43:18 +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
william.valenduc
f0b39535fb feat(utils): lists tests 2026-01-29 20:35:56 +00:00
william.valenduc
e65c55f5c9 feat(vars): unit tests 2026-01-29 20:00:40 +00:00
william.valenduc
c448776268 fix(execution): var update leak 2026-01-29 19:56:21 +00:00
william.valenduc
e32715ce13 feat(execution): var assign 2026-01-29 19:46:22 +00:00
Guillem George
6cdcf3f36b fix: readded fsanitize for check_flemme.sh (linux only) 2026-01-29 20:41:45 +01:00
Matteo Flebus
5784f557b8 fix: Makefile 2026-01-29 20:39:58 +01:00
matteo
028d4312af feat: fuckning working 2026-01-29 20:29:02 +01:00
matteo
56f0a979a7 merge parser in dev 2026-01-29 19:50:42 +01:00
Guillem George
3601c3136f feat: final firsts initialization 2026-01-29 19:47:59 +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
Jean
4315eb5c0d fix(execution): Redir ahah type 2026-01-29 19:12:58 +01:00
matteo
a70943e5cc fix(parser): small typo 2026-01-29 19:11:13 +01:00
matteo
98d18eef7d fix: ast_redir and ast_assignment accorded for every part 2026-01-29 18:46:11 +01:00
matteo
e0032dd991 merge parser into dev for redirections 2026-01-29 18:23:28 +01:00
matteo
25079bfebf feat(lexer + grammar): inch les redirections ca marche 2026-01-29 18:21:44 +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
28749a2992 feat(parser): assignments handled 2026-01-29 12:38:03 +01:00
william.valenduc
988d8ef298 feat(execution): update $PWD and $OLD_PWD 2026-01-29 11:29:03 +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
f0a7173b11 feat(lexer): implementing assignements 2026-01-29 11:18:56 +01:00
matteo
e1291107d4 fix: small errors in exec and parser 2026-01-29 09:59:16 +01:00
matteo
fde653ac5d feat(ast): add ast_assignements. Similar to how redirections are handled. 2026-01-29 09:56:28 +01:00
william.valenduc
75d417eecf feat(expansion): remove double quotes 2026-01-28 21:26:51 +00:00
Jean
28b2e82078 began to reimplement the new execution 2026-01-28 21:55:55 +01:00
Jean
0d425aa44c Merge branch 'parser' into dev 2026-01-28 21:28:14 +01:00
matteo
c40e5c2d0f feat(parser): helper static function 2026-01-28 19:16:48 +01:00
matteo
0db50e28de fix(parser): small typos 2026-01-28 16:26:17 +01:00
matteo
97e4b6c0f3 style(parser): refactor parse_command 2026-01-28 12:21:57 +01:00
matteo
b657d65664 feat(parser): parse_command version with prefixes and elements 2026-01-28 12:11:40 +01:00
matteo
9a0f9bc6f1 fix: redirections types 2026-01-28 11:34:29 +01:00
Jean HERAIL
a8b4e5d6df fix(execution): reimplemented the builtins 2026-01-27 21:10:24 +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
04ff7376eb Merge branch 'parser' into dev 2026-01-27 19:10:53 +01:00
Matteo Flebus
9ea979b303 fix(parser): initialization is not heap buffer overflowing anymore 2026-01-27 19:10:32 +01:00
Matteo Flebus
b0c4400cdf Merge branch 'parser' into dev 2026-01-27 18:01:13 +01:00
Matteo Flebus
13018e0a03 fix: small bugs to make it compile 2026-01-27 18:00:59 +01:00
Matteo Flebus
9003675c40 feat(lexer): negation 2026-01-27 16:44:53 +01:00
Matteo Flebus
c48d86c8de feat(parser): negation handled 2026-01-27 16:35:30 +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