diff options
Diffstat (limited to 'source/engine/engine.c')
| -rw-r--r-- | source/engine/engine.c | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/source/engine/engine.c b/source/engine/engine.c index 609101e..ada4ecb 100644 --- a/source/engine/engine.c +++ b/source/engine/engine.c | |||
| @@ -10,25 +10,32 @@ | |||
| 10 | #include "../repl/repl.h" | 10 | #include "../repl/repl.h" |
| 11 | #include "../repl/repl.c" | 11 | #include "../repl/repl.c" |
| 12 | 12 | ||
| 13 | int main(int c, char **v) | 13 | #include "../storage/csv_reader.h" |
| 14 | { | 14 | #include "../storage/csv_reader.c" |
| 15 | mem_arena *global_arena = arena_create(MiB(1)); | 15 | |
| 16 | #if 1 | ||
| 17 | #include <stdio.h> | ||
| 18 | #endif | ||
| 16 | 19 | ||
| 17 | unused(c); | ||
| 18 | unused(v); | ||
| 19 | 20 | ||
| 20 | string8 buffer = PushString(global_arena, 5); | 21 | int main(int c, char **v) |
| 21 | unused(buffer); | 22 | { |
| 23 | if(c < 2) return -999; | ||
| 22 | 24 | ||
| 25 | string8 buffer = load_file(v[1]); | ||
| 26 | read_csv(buffer); | ||
| 23 | 27 | ||
| 24 | for (;;) | ||
| 25 | { | ||
| 26 | print("reading user input..."); | ||
| 27 | // TODO(nasr): design a repl system | ||
| 28 | 28 | ||
| 29 | sleep(1); | 29 | // for(;;) |
| 30 | } | 30 | // { |
| 31 | // print("reading user input..."); | ||
| 32 | // // TODO(nasr): design a repl system | ||
| 33 | // | ||
| 34 | // sleep(1); | ||
| 35 | // } | ||
| 36 | // | ||
| 31 | 37 | ||
| 38 | return 0; | ||
| 32 | } | 39 | } |
| 33 | 40 | ||
| 34 | 41 | ||
