diff options
| author | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-21 12:44:01 +0200 |
|---|---|---|
| committer | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-21 12:44:01 +0200 |
| commit | fc27548c447ed9bcd07493983431e0a6e72c7cef (patch) | |
| tree | dbb25a8cc09cbacd8d0d1dcd4a3962f468f96551 /src/main.c | |
| parent | 2efe642849cf6d45d5413cd77d8cafaf9b32db00 (diff) | |
restructure dir
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4,20 +4,20 @@ #include <readline/history.h> #include <string.h> -#include "exec.h" +#include "syntax.h" +#include "stages.h" int main() { char* line; - ShellState shstate = {.shell_vars = make_KeyValMap(1), .aliases = make_KeyValMap(1)}; while (1) { line = readline("$ "); if (line[0] == '\0') continue; if (strcmp(line, "exit") == 0) exit(0); add_history(line); - process_input_line(line, &shstate); + Ast ast = lex(line); + PipelineTree pltree = process_ast(ast); + execute_pipeline_tree(pltree); } free(line); } - - |
