diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-02-07 23:38:14 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-02-07 23:38:14 -0700 |
commit | 3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9 (patch) | |
tree | d1ae0b637370bc70863ec214e933b1695a47b857 /src/gamestate.h | |
parent | e9170376ec9d75f65949ac6b61694ddf7ad37897 (diff) | |
download | stage-3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9.tar.gz stage-3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9.tar.bz2 stage-3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9.tar.xz stage-3a1a20a9bc7008abb7de241c44cc0d7a3d4a77d9.zip |
All good except loops & function returns.
Diffstat (limited to 'src/gamestate.h')
-rw-r--r-- | src/gamestate.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gamestate.h b/src/gamestate.h index 4209ebf..115892a 100644 --- a/src/gamestate.h +++ b/src/gamestate.h | |||
@@ -27,7 +27,8 @@ public: | |||
27 | 27 | ||
28 | Interface *getInterface() { return pIface; } | 28 | Interface *getInterface() { return pIface; } |
29 | 29 | ||
30 | void parse( class AstBranch *pAst ); | 30 | void run( class AstBranch *pAst ); |
31 | void pushScope( class AstBranch *pAst ); | ||
31 | 32 | ||
32 | void init(); | 33 | void init(); |
33 | 34 | ||
@@ -56,7 +57,7 @@ public: | |||
56 | class Situation *getCurSituation(); | 57 | class Situation *getCurSituation(); |
57 | 58 | ||
58 | private: | 59 | private: |
59 | void parse( const AstBranch::NodeList &lCode ); | 60 | void run(); |
60 | 61 | ||
61 | Gats::Object *scopeToGats( const Scope *pSrc ) const; | 62 | Gats::Object *scopeToGats( const Scope *pSrc ) const; |
62 | Gats::Object *variableToGats( const Variable &rVar ) const; | 63 | Gats::Object *variableToGats( const Variable &rVar ) const; |
@@ -80,6 +81,10 @@ private: | |||
80 | Bu::String sPrompt; | 81 | Bu::String sPrompt; |
81 | 82 | ||
82 | VariableList lStack; | 83 | VariableList lStack; |
84 | |||
85 | typedef AstBranch::NodeList::const_iterator ProgramCounter; | ||
86 | typedef Bu::List<ProgramCounter> ProgramStack; | ||
87 | ProgramStack sProg; | ||
83 | }; | 88 | }; |
84 | 89 | ||
85 | #endif | 90 | #endif |