Commit graph

55 commits

Author SHA1 Message Date
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
9ea979b303 fix(parser): initialization is not heap buffer overflowing anymore 2026-01-27 19:10:32 +01:00
Matteo Flebus
13018e0a03 fix: small bugs to make it compile 2026-01-27 18:00:59 +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
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
07e7d83c60 fix(parser): error message now displayed on stderr 2026-01-26 19:54:43 +01:00
Matteo Flebus
666517e3c1 feat(parser): implementing all redirection types -- WIP 2026-01-26 19:00:20 +01:00
Matteo Flebus
23f6815162 feat(parser): redirections types handled in grammar init 2026-01-26 18:35:48 +01:00
Gu://em_
787b1aed35 fix: random fixes 2026-01-24 16:48:21 +01:00
Gu://em_
3ee4a0b9ca feat: finished the new firsts system and began supporting redirections 2026-01-24 16:13:16 +01:00
Gu://em_
32f56beb6b feat: redirection rules 2026-01-24 15:34:10 +01:00
Gu://em_
18c1da6bdf fix: merge conflict 2026-01-24 13:08:47 +01:00
Gu://em_
da1a73c264 feat: made the firsts system for parser (not yet populated) 2026-01-24 13:06:39 +01:00
matteo
9f22aa59b6 fix(parser): building + clang format -- UNSTABLE 2026-01-23 19:43:54 +01:00
Gu://em_
32e182bd50 fix: random fixes 2026-01-23 17:33:15 +01:00
Gu://em_
69ee869af0 fix: merge conflict 2026-01-23 17:08:34 +01:00
Gu://em_
96ac2fea77 feat: yet another new parser architecture 2026-01-23 17:01:26 +01:00
Matteo Flebus
82f35cfa08 feat(parser): and_or_rule in progress 2026-01-22 19:57:49 +01:00
Matteo Flebus
5faa179b63 fix(parser): rule if now works 2026-01-22 19:06:58 +01:00
Matteo Flebus
fbc36f35b2 fix(IOB): EOF in stdin works 2026-01-22 14:05:49 +01:00
Matteo Flebus
8f5733be19 feat: all merged 2026-01-22 12:05:01 +01:00
Jean Herail
0ede8d3eef Re-functionnal pretty-printing 2026-01-21 19:57:44 +01:00
Gu://em_
b5b40f303c fix: made all includes relatives for the wellbeing of all LSPs seeing this project 2026-01-20 22:16:46 +01:00
Matteo Flebus
71e58e38b8 fix: new lexer is linked to everything 2026-01-20 20:32:59 +01:00
Matteo Flebus
d5a1ec3ca6 fix(parser): adapting to new lexer 2026-01-20 20:27:46 +01:00
Matteo Flebus
c3ab2585e1 feat(parser): adapted to new lexer without static var 2026-01-20 19:54:29 +01:00
Gu://em_
603def1597 fix: includes with relative path and memory leaks 2026-01-20 19:25:55 +01:00
Matteo Flebus
f38e828c0a Merge branch 'parser' into dev (keeping parser) 2026-01-19 19:37:59 +01:00
Matteo Flebus
c1f1a2fc37 fix(parser): 3098750984535 compilations errors in parsing_utils 2026-01-19 19:15:28 +01:00
Gu://em_
5d87e87f2e fix: lot of fixes in parsing. Now code should be fully compliant with the doc grammar. WARNING: not tested yet 2026-01-17 20:15:27 +01:00
matteo
352c122549 fix: now compiles and works for simple commands + clang format 2026-01-17 19:11:55 +01:00
Gu://em_
f887c90ec5 feat: elif support, fixed a lot of inconcistencies with the grammar and updated code according to the behaviour described in the header. Also fixed some typos and doc errors 2026-01-17 17:20:13 +01:00
Gu://em_
346ad17e26 docs: reworked parser header to fully comply with the given grammar and added a language representation for each parse_* function 2026-01-17 16:40:53 +01:00
Matteo Flebus
ce60a95471 fix(parser): made it compile 2026-01-16 20:27:57 +01:00
Matteo Flebus
ed42f0b93d feat(parser): parse_list() implemented 2026-01-16 20:12:29 +01:00
Matteo Flebus
f33498fb13 fix(parser): moved macro declaration from parser.h to parsing_utils.h 2026-01-16 19:45:15 +01:00
Matteo Flebus
10ce140e37 fix(parser + lexer): interaction -- WIP 2026-01-16 19:31:58 +01:00
Matteo Flebus
04529f858c fix: compiling but not working -- need debug 2026-01-15 20:42:28 +01:00
Matteo Flebus
eb5f57cbaa fix(parser): rename cmd => command 2026-01-15 17:46:24 +01:00
Matteo Flebus
89ff5f4b1e fix(parser): making it compile -- UNSTABLE 2026-01-15 17:29:34 +01:00
Matteo Flebus
1116eef083 fix(parser): make it compile 2026-01-15 17:25:21 +01:00
Guillem George
80e4b6c2fd feat: suport for the new lexer and if/else structures 2026-01-14 20:53:47 +01:00
Gu://em_
37fcdf99be fix: added new ast type and moved parsing functions to a different header 2026-01-13 19:41:37 +01:00
Gu://em_
7b773641a1 fix: restored progress from the old parser branch 2026-01-13 16:53:25 +01:00
Matteo Flebus
9bf3ed068a style(all): clang format 2026-01-12 21:48:11 +01:00
Gu://em_
97b7240286 fix: Fixed ALL the code 2026-01-10 19:57:36 +01:00
Gu://em_
417a518d1b fix(parser): functions body placebo so code compiles 2026-01-10 19:16:36 +01:00