Changeset 248 in dev for trunk/abdev/BasicCompiler_Common/include/LexicalScope.h
- Timestamp:
- Jul 29, 2007, 12:33:04 PM (17 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/LexicalScope.h
r245 r248 2 2 3 3 #include <jenga/include/smoothie/Smoothie.h> 4 #include <jenga/include/smoothie/LexicalScoping.h>5 4 6 class ScopeImpl : public CScope 7 { 8 public: 9 ScopeImpl( int level, int addr, SCOPE_TYPE TypeOfStatement ) 10 : CScope( level, addr, TypeOfStatement ) 11 { 12 } 13 ~ScopeImpl(); 5 #include <CodeGenerator.h> 14 6 15 virtual void Break();16 virtual void RunScheduleOfBreak();17 };18 19 class LexicalScopesImpl : public CLexicalScopes20 {21 virtual CScope *CreateScope( int level, int addr, SCOPE_TYPE TypeOfStatement )22 {23 return new ScopeImpl( level, addr, TypeOfStatement );24 }25 26 public:27 28 virtual void End();29 30 //スコープ終了時のデストラクタ呼び出し31 virtual void CallDestructorsOfScopeEnd();32 33 //Returnステートメント用のデストラクタ呼び出し34 virtual void CallDestructorsOfReturn( int BaseLevel = 0 );35 };36 37 LexicalScopesImpl &GetLexicalScopes();
Note:
See TracChangeset
for help on using the changeset viewer.