blob: ada4ecbfd12456c33c43a0c79e268c49bec9dabe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#define BASE_UNITY
#include "../base/base_include.h"
#include "../lexer/lexer.h"
#include "../lexer/lexer.c"
#include "../parser/parser.h"
#include "../parser/parser.c"
#include "../repl/repl.h"
#include "../repl/repl.c"
#include "../storage/csv_reader.h"
#include "../storage/csv_reader.c"
#if 1
#include <stdio.h>
#endif
int main(int c, char **v)
{
if(c < 2) return -999;
string8 buffer = load_file(v[1]);
read_csv(buffer);
// for(;;)
// {
// print("reading user input...");
// // TODO(nasr): design a repl system
//
// sleep(1);
// }
//
return 0;
}
|