My Project
Loading...
Searching...
No Matches
main.c File Reference
#include "gwion_util.h"
#include "gwion_ast.h"
#include "parser.h"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 4 of file main.c.

4 {
5// MemPool p = mempool_ini(sizeof(Exp));
6 MemPool p = mempool_ini(1024);
7 SymTable *st = new_symbol_table(p, 65536);
9 for(int i = 1; i < argc; i++) {
10 FILE *f = fopen(argv[i], "r");
11 if(!f) {
12 gw_err("{R+}%s{0} not found\n");
13 continue;
14 }
15 struct AstGetter_ arg = { argv[i], f, st, .ppa = &ppa};
16 parse(&arg);
17 fclose(f);
18 }
19}
static ANN Ast parse(struct AstGetter_ *const arg)
Definition ast_getter.h:31
return macro_rem & ppa
Definition pparg.h:30
FILE * f
Definition ast_getter.h:23
SymTable * st
Definition ast_getter.h:24
Definition pparg.h:7