Commit graph

  • ed64a1bc18 began to reimplement the new execution Jean 2026-01-28 21:55:55 +01:00
  • 050a1909f0 feat(parser): helper static function matteo 2026-01-28 19:16:48 +01:00
  • 967a78e1a4 fix(parser): small typos matteo 2026-01-28 16:26:17 +01:00
  • efb0a6f148 style(parser): refactor parse_command matteo 2026-01-28 12:21:57 +01:00
  • 51fc8a3330 feat(parser): parse_command version with prefixes and elements matteo 2026-01-28 12:11:40 +01:00
  • 9d586402df fix: redirections types matteo 2026-01-28 11:34:29 +01:00
  • 1e4b3fb0a8 feat(redirections): ast commands now have a field for the list of redirections + redirections implemented in parser Matteo Flebus 2026-01-27 21:06:36 +01:00
  • 567192b771 feat(vars): unit tests william.valenduc 2026-01-29 11:18:33 +00:00
  • fe3c4243c8 Revert "feat(ast_assignement): changed (name, value) to assignement" matteo 2026-01-29 11:37:20 +01:00
  • ac77d79a60 feat(ast_assignement): changed (name, value) to assignement matteo 2026-01-29 11:32:15 +01:00
  • f0a7173b11 feat(lexer): implementing assignements matteo 2026-01-29 11:18:56 +01:00
  • e1291107d4 fix: small errors in exec and parser matteo 2026-01-29 09:59:16 +01:00
  • fde653ac5d feat(ast): add ast_assignements. Similar to how redirections are handled. matteo 2026-01-29 09:56:28 +01:00
  • 75d417eecf feat(expansion): remove double quotes william.valenduc 2026-01-28 21:26:51 +00:00
  • 28b2e82078 began to reimplement the new execution Jean 2026-01-28 21:55:55 +01:00
  • 0d425aa44c Merge branch 'parser' into dev Jean 2026-01-28 21:28:14 +01:00
  • c40e5c2d0f feat(parser): helper static function matteo 2026-01-28 19:16:48 +01:00
  • f1310b7b09 feat(lexer): parsing and_or operators matteo 2026-01-28 16:42:40 +01:00
  • 0db50e28de fix(parser): small typos matteo 2026-01-28 16:26:17 +01:00
  • 97e4b6c0f3 style(parser): refactor parse_command matteo 2026-01-28 12:21:57 +01:00
  • b657d65664 feat(parser): parse_command version with prefixes and elements matteo 2026-01-28 12:11:40 +01:00
  • 9a0f9bc6f1 fix: redirections types matteo 2026-01-28 11:34:29 +01:00
  • a8b4e5d6df fix(execution): reimplemented the builtins Jean HERAIL 2026-01-27 21:10:24 +01:00
  • 399d1ed3e1 feat(redirections): ast commands now have a field for the list of redirections + redirections implemented in parser Matteo Flebus 2026-01-27 21:06:36 +01:00
  • 8a5c589742 feat(parser): redirections Matteo Flebus 2026-01-27 19:56:33 +01:00
  • 04ff7376eb Merge branch 'parser' into dev Matteo Flebus 2026-01-27 19:10:53 +01:00
  • 9ea979b303 fix(parser): initialization is not heap buffer overflowing anymore Matteo Flebus 2026-01-27 19:10:32 +01:00
  • b0c4400cdf Merge branch 'parser' into dev Matteo Flebus 2026-01-27 18:01:13 +01:00
  • 13018e0a03 fix: small bugs to make it compile Matteo Flebus 2026-01-27 18:00:59 +01:00
  • 9003675c40 feat(lexer): negation Matteo Flebus 2026-01-27 16:44:53 +01:00
  • c48d86c8de feat(parser): negation handled Matteo Flebus 2026-01-27 16:35:30 +01:00
  • 7614370d00 feat(parser): implementing redirections... Matteo Flebus 2026-01-27 16:17:40 +01:00
  • d52f603eec fix: changed puts to perror + redirections in parser Matteo Flebus 2026-01-27 16:05:11 +01:00
  • 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 Gu://em_ 2026-01-27 00:30:19 +01:00
  • 07e7d83c60 fix(parser): error message now displayed on stderr Matteo Flebus 2026-01-26 19:54:43 +01:00
  • 666517e3c1 feat(parser): implementing all redirection types -- WIP Matteo Flebus 2026-01-26 19:00:20 +01:00
  • d707c6180b merge new parser into dev Matteo Flebus 2026-01-26 18:40:10 +01:00
  • 23f6815162 feat(parser): redirections types handled in grammar init Matteo Flebus 2026-01-26 18:35:48 +01:00
  • 351562bb89 feat: flemme scripts for building and testing Jean 2026-01-26 18:35:08 +01:00
  • f1ad31c442 Merge branch 'dev' Matteo Flebus 2026-01-26 17:22:06 +01:00
  • c8c72085cb fix(testsuite): files .sh now have the correct shebang Matteo Flebus 2026-01-26 17:21:34 +01:00
  • 69bdecbb62 fix: fixed testsuite reporting false failures Gu://em_ 2026-01-25 16:50:22 +01:00
  • 668bba5b02 Merge branch 'testsuite' into dev testsuite matteo 2026-01-24 17:49:07 +01:00
  • 5ce56702a4 Merge branch 'execution' into dev matteo 2026-01-24 17:46:44 +01:00
  • 0c23863580 fix(functional-testsuite): timeout shorter, 2s => 0.2s matteo 2026-01-24 17:45:17 +01:00
  • 9276e1a8a5 Fixed the length of the execution function Jean 2026-01-24 17:35:06 +01:00
  • 3b538cbb79 fix(lexer): edge cases where 'f' can be lexed as 'fi' for example matteo 2026-01-24 17:21:33 +01:00
  • adc1bdc841 Merge branch 'functional-testing' into dev Gu://em_ 2026-01-24 17:19:50 +01:00
  • 83935e9180 feat: vla les tests functional-testing Gu://em_ 2026-01-24 17:19:03 +01:00
  • 32d38c0d13 feat(vars): $@ and $* init william.valenduc 2026-01-24 16:02:37 +00:00
  • e11eca72dc fix(testsuite): iobackend tests are now useable matteo 2026-01-24 16:54:26 +01:00
  • 787b1aed35 fix: random fixes Gu://em_ 2026-01-24 16:48:21 +01:00
  • 79a73a23a0 fix(testsuite): unit testing running matteo 2026-01-24 16:36:23 +01:00
  • 00c2b9c979 fix(lists): restored lists in splitted files william.valenduc 2026-01-24 15:23:31 +00:00
  • 3ee4a0b9ca feat: finished the new firsts system and began supporting redirections Gu://em_ 2026-01-24 16:13:16 +01:00
  • 91806d926e fix: testsuite sees the BIN_PATH, default value is to src/42sh matteo 2026-01-24 15:46:19 +01:00
  • 07d345f754 feat(vars): $# init william.valenduc 2026-01-24 14:51:27 +00:00
  • f3be15abb5 fix: testsuite sees the BIN_PATH, default value is to src/42sh matteo 2026-01-24 15:46:19 +01:00
  • 32f56beb6b feat: redirection rules Gu://em_ 2026-01-24 15:34:10 +01:00
  • da948f58fe fix(execution): ast_void does not affect return value => if statements now work matteo 2026-01-24 14:52:37 +01:00
  • 6be3dde607 fix(main): memeory leaks from vars on error_input_processing matteo 2026-01-24 13:20:29 +01:00
  • 18c1da6bdf fix: merge conflict Gu://em_ 2026-01-24 13:08:47 +01:00
  • da1a73c264 feat: made the firsts system for parser (not yet populated) Gu://em_ 2026-01-24 13:06:39 +01:00
  • 71fadb1b4a fix: clang tidy + made static what could be instead of malloc matteo 2026-01-24 12:55:11 +01:00
  • de9173a71f fix: testsuite matteo 2026-01-23 23:20:32 +01:00
  • a3998358ea fix: make check calls the functional testsuite matteo 2026-01-23 20:38:52 +01:00
  • 01c2505489 Merge branch 'functional-testing' into dev matteo 2026-01-23 20:33:33 +01:00
  • b9d7dbce1f feat: build system ready for testsuite using make check matteo 2026-01-23 20:31:49 +01:00
  • e853249fbf fix(lexer): $# and backslash implemented (partial version) matteo 2026-01-23 20:11:21 +01:00
  • 9f22aa59b6 fix(parser): building + clang format -- UNSTABLE matteo 2026-01-23 19:43:54 +01:00
  • 0c80663d7c Merge branch 'lexer' into dev matteo 2026-01-23 19:37:14 +01:00
  • 1e5593fc8e feat(lexer): operators done matteo 2026-01-23 19:34:47 +01:00
  • 67ffea83d3 feat(vars): $UID william.valenduc 2026-01-23 17:13:41 +00:00
  • 7bcf48f63e feat(args): $0, $1, ... in vars william.valenduc 2026-01-23 17:05:56 +00:00
  • 32e182bd50 fix: random fixes Gu://em_ 2026-01-23 17:33:15 +01:00
  • 69ee869af0 fix: merge conflict Gu://em_ 2026-01-23 17:08:34 +01:00
  • 96ac2fea77 feat: yet another new parser architecture Gu://em_ 2026-01-23 17:01:26 +01:00
  • 3cdba0ad9c feat(lexer): comments done + operator WIP matteo 2026-01-23 15:56:21 +01:00
  • 82f35cfa08 feat(parser): and_or_rule in progress Matteo Flebus 2026-01-22 19:57:49 +01:00
  • 5faa179b63 fix(parser): rule if now works Matteo Flebus 2026-01-22 19:06:58 +01:00
  • 2f2509f1c9 fix: clean merge of pretty-print with no memory leaks Matteo Flebus 2026-01-22 17:19:17 +01:00
  • f2e44d93f4 Merge branch 'dev' of gitlab.cri.epita.fr:guillem.george/42sh into dev Jean Herail 2026-01-22 16:49:12 +01:00
  • 3445a36a7c Pretty_print Jean Herail 2026-01-22 16:46:33 +01:00
  • 6dd19a75ad feat(execution): set $? var william.valenduc 2026-01-22 13:10:23 +00:00
  • f20a02ddab Merge branch 'lexer' into dev Matteo Flebus 2026-01-22 14:06:25 +01:00
  • fbc36f35b2 fix(IOB): EOF in stdin works Matteo Flebus 2026-01-22 14:05:49 +01:00
  • 4fc43e4678 feat(dev): expansion william.valenduc 2026-01-22 12:09:18 +00:00
  • 609c1667af fix(lexer): POKEDALLARS Matteo Flebus 2026-01-22 12:59:04 +01:00
  • 687f38523b fix(main_loop): no double echo Matteo Flebus 2026-01-22 12:08:51 +01:00
  • 8f5733be19 feat: all merged Matteo Flebus 2026-01-22 12:05:01 +01:00
  • d6b103dcd2 Merge branch 'iobackend' into dev Matteo Flebus 2026-01-22 11:57:45 +01:00
  • ed6e761f9c feat: testsuite summary and enhanced tests look Gu://em_ 2026-01-21 22:59:33 +01:00
  • 39ca927c06 fix(IOB): EOF does not overwrite last char anymore Matteo Flebus 2026-01-21 20:00:48 +01:00
  • 527c635d3f Merge branch 'pretty_print' into dev Jean Herail 2026-01-21 19:59:12 +01:00
  • 0ede8d3eef Re-functionnal pretty-printing Jean Herail 2026-01-21 19:57:44 +01:00
  • 4a1fa12941 Added documentation for try_builtin Jean Herail 2026-01-21 19:39:11 +01:00
  • 402b1614b5 feat: Extended base tools for testing and made a basic test Gu://em_ 2026-01-21 19:17:29 +01:00
  • 627c3057e9 fix(main): return code because of ast_free Matteo Flebus 2026-01-21 19:11:38 +01:00
  • 306b13308b feat(lexer): comment handling + healthy changes Matteo Flebus 2026-01-21 18:43:17 +01:00
  • 03e5305b56 fix(IOB): stdin and script should work Matteo Flebus 2026-01-21 18:59:53 +01:00