Mercurial > projects > ddmd
annotate dmd/InterState.d @ 114:e28b18c23469
added a module dmd.common for commonly used stuff
it currently holds code for consistency checking of predefined versions
also added a VisualD project file
author | Trass3r |
---|---|
date | Wed, 01 Sep 2010 18:21:58 +0200 |
parents | 7e0d548de9e6 |
children | e3afd1303184 |
rev | line source |
---|---|
0 | 1 module dmd.InterState; |
2 | |
114 | 3 import dmd.common; |
0 | 4 import dmd.FuncDeclaration; |
74
7e0d548de9e6
Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
63
diff
changeset
|
5 import dmd.Dsymbol; |
0 | 6 import dmd.Expression; |
7 import dmd.Statement; | |
8 | |
63 | 9 class InterState |
0 | 10 { |
63 | 11 this() |
12 { | |
13 vars = new Dsymbols(); | |
14 } | |
15 | |
16 InterState caller; // calling function's InterState | |
0 | 17 FuncDeclaration fd; // function being interpreted |
18 Dsymbols vars; // variables used in this function | |
19 Statement start; // if !=NULL, start execution at this statement | |
20 Statement gotoTarget; // target of EXP_GOTO_INTERPRET result | |
21 Expression localThis; // value of 'this', or NULL if none | |
22 } |