Commit graph

57 commits

Author SHA1 Message Date
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 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_
b663655d53 fix: strdup a la con 2026-01-30 21:27:23 +01:00
Matteo Flebus
4d271981df merge parser into dev with ast loops 2026-01-30 19:57:36 +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
f8b91d4da3 fix: memory issues, parser errors and get_ast_if returning always NULL 2026-01-30 16:51:10 +01: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
Jean
9276e1a8a5 Fixed the length of the execution function 2026-01-24 17:35:06 +01:00
Gu://em_
32f56beb6b feat: redirection rules 2026-01-24 15:34:10 +01:00
Gu://em_
32e182bd50 fix: random fixes 2026-01-23 17:33:15 +01:00
Matteo Flebus
82f35cfa08 feat(parser): and_or_rule in progress 2026-01-22 19:57:49 +01:00
Matteo Flebus
2f2509f1c9 fix: clean merge of pretty-print with no memory leaks 2026-01-22 17:19:17 +01:00
Jean Herail
3445a36a7c Pretty_print 2026-01-22 16:46:33 +01:00
Jean Herail
527c635d3f Merge branch 'pretty_print' into dev 2026-01-21 19:59:12 +01:00
Jean Herail
0ede8d3eef Re-functionnal pretty-printing 2026-01-21 19:57:44 +01:00
william.valenduc
e640e7bdbd fix(ast): update include paths to relative 2026-01-19 18:15:57 +00:00
matteo
352c122549 fix: now compiles and works for simple commands + clang format 2026-01-17 19:11:55 +01:00
Jean Herail
bf992f2db4 Implemented some ast handlings...
ast lists, and_or, redirection and builtins
2026-01-17 17:33:22 +01:00
Matteo Flebus
ccb9438d69 fix(ast): the same typo 2026-01-16 20:32:56 +01:00
Matteo Flebus
67d76ac895 fix(ast): typo 2026-01-16 20:31:30 +01:00
Matteo Flebus
1cd827180a fix(ast): add ast_end in building process 2026-01-16 20:30:04 +01:00
Matteo Flebus
9e56654d31 feat(ast): AST_END type implemented 2026-01-16 20:19:12 +01:00
Matteo Flebus
1eecb1bd42 fix: merging all the code 2026-01-15 18:49:42 +01:00
Matteo Flebus
f0e3c2f41b fix(ast): rename *_cmd() functions to *_command() 2026-01-15 17:41:15 +01:00
Matteo Flebus
30df2993ee refactor(ast): one file per ast_type -- FINISHED 2026-01-15 17:12:06 +01:00
Matteo Flebus
38f5a35885 refactor(ast): one file per ast_type -- UNSTABLE (4) 2026-01-15 15:59:42 +01:00
Matteo Flebus
e3ec484621 refactor(ast): one file per ast_type -- UNSTABLE (3) 2026-01-15 15:53:56 +01:00
Matteo Flebus
68d8a1fd13 refactor(ast): one file per ast_type -- UNSTABLE (2) 2026-01-14 20:53:57 +01:00
Jean Herail
f6573d81f0 feat(pretty-print): Just casually implemented the graphviz representation of parsed AST 2026-01-14 20:42:31 +01:00
Matteo Flebus
eba6d0f762 refactor(ast): one file per ast_type -- UNSTABLE 2026-01-14 20:32:51 +01:00