diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 14:49:02 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-12-29 14:49:02 -0700 |
commit | 162ccd918698f53ef9ff7ba80091969d93aa789d (patch) | |
tree | b01d84a31a5fec69a07cdbef75fa777529dfacc7 /src/main.cpp | |
parent | 533310f646f1b1a00250a361f627967c420f1eef (diff) | |
download | stage-162ccd918698f53ef9ff7ba80091969d93aa789d.tar.gz stage-162ccd918698f53ef9ff7ba80091969d93aa789d.tar.bz2 stage-162ccd918698f53ef9ff7ba80091969d93aa789d.tar.xz stage-162ccd918698f53ef9ff7ba80091969d93aa789d.zip |
Situation code actually processes now.
Most of the AstNode types are unhandled yet.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 609802c..8fe5247 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -1,4 +1,6 @@ | |||
1 | #include "gamebuilder.h" | 1 | #include "gamebuilder.h" |
2 | #include "game.h" | ||
3 | #include "gamestate.h" | ||
2 | #include "parser.tab.h" | 4 | #include "parser.tab.h" |
3 | 5 | ||
4 | typedef void *yyscan_t; | 6 | typedef void *yyscan_t; |
@@ -23,6 +25,11 @@ int main( int argc, char *argv[] ) | |||
23 | 25 | ||
24 | fclose( in ); | 26 | fclose( in ); |
25 | 27 | ||
28 | Game *pGame = bld.getGame(); | ||
29 | |||
30 | GameState gs( pGame ); | ||
31 | gs.init(); | ||
32 | |||
26 | return 0; | 33 | return 0; |
27 | } | 34 | } |
28 | 35 | ||