diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..1adb55f --- /dev/null +++ b/src/main.cpp | |||
@@ -0,0 +1,21 @@ | |||
1 | #include "gamebuilder.h" | ||
2 | #include "parser.tab.h" | ||
3 | |||
4 | typedef void *yyscan_t; | ||
5 | void yylex_init( yyscan_t * ); | ||
6 | void yylex_destroy( yyscan_t ); | ||
7 | void yyparse( yyscan_t, GameBuilder &bld ); | ||
8 | |||
9 | int main( int argc, char *argv[] ) | ||
10 | { | ||
11 | yyscan_t scanner; | ||
12 | |||
13 | GameBuilder bld; | ||
14 | |||
15 | yylex_init( &scanner ); | ||
16 | yyparse( scanner, bld ); | ||
17 | yylex_destroy( scanner ); | ||
18 | |||
19 | return 0; | ||
20 | } | ||
21 | |||