summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-12-23 00:52:32 -0700
committerMike Buland <eichlan@xagasoft.com>2011-12-23 00:52:32 -0700
commit7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0 (patch)
tree7b8a69448e3399786a71b0bd8295ccdfa0b6f68c /src/main.cpp
parent58a71e57e3824a3a0c5385af91421674395990dc (diff)
downloadstage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.tar.gz
stage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.tar.bz2
stage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.tar.xz
stage-7a53f0e95a5ffe13a21fc8d2076e34ee96693ac0.zip
The game is actually being built now.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp21
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
4typedef void *yyscan_t;
5void yylex_init( yyscan_t * );
6void yylex_destroy( yyscan_t );
7void yyparse( yyscan_t, GameBuilder &bld );
8
9int 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