diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8fe5247..2b20e66 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -3,6 +3,9 @@ | |||
3 | #include "gamestate.h" | 3 | #include "gamestate.h" |
4 | #include "parser.tab.h" | 4 | #include "parser.tab.h" |
5 | 5 | ||
6 | #include <bu/sio.h> | ||
7 | using namespace Bu; | ||
8 | |||
6 | typedef void *yyscan_t; | 9 | typedef void *yyscan_t; |
7 | void yylex_init( yyscan_t * ); | 10 | void yylex_init( yyscan_t * ); |
8 | void yylex_destroy( yyscan_t ); | 11 | void yylex_destroy( yyscan_t ); |
@@ -30,6 +33,13 @@ int main( int argc, char *argv[] ) | |||
30 | GameState gs( pGame ); | 33 | GameState gs( pGame ); |
31 | gs.init(); | 34 | gs.init(); |
32 | 35 | ||
36 | char buf[1024]; | ||
37 | sio << ">>" << sio.flush; | ||
38 | fgets( buf, 1024, stdin ); | ||
39 | |||
40 | sio << "Read: >" << buf << "<" << sio.nl; | ||
41 | gs.execCommand( buf ); | ||
42 | |||
33 | return 0; | 43 | return 0; |
34 | } | 44 | } |
35 | 45 | ||