diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -3,6 +3,7 @@ #include <readline/readline.h> #include <string.h> +#include "defs.h" #include "lex.h" #include "parse.h" #include "exec.h" @@ -15,9 +16,16 @@ int main() { line = readline("$ "); if (line[0] == '\0') continue; if (strcmp(line, "exit") == 0) exit(0); - LexResult res = lex(line); + PreprocArena arena = { + .tokens = make_TokenVec(256), + .chunks = make_ChunkVec(256), + .regions = make_RegionVec(256), + }; + TokenPtrVec line_toks = lex(line, &arena); + /* Pipeline pl = parse_tokstream(res.top_tokens); run_pipeline(pl, &shstate); + */ } free(line); } |
