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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.InterState;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
114
e28b18c23469 added a module dmd.common for commonly used stuff
Trass3r
parents: 74
diff changeset
3 import dmd.common;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
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
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 import dmd.Expression;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 import dmd.Statement;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8
63
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
9 class InterState
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 {
63
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
11 this()
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
12 {
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
13 vars = new Dsymbols();
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
14 }
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
15
cab4c37afb89 A bunch of implementations
korDen
parents: 0
diff changeset
16 InterState caller; // calling function's InterState
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17 FuncDeclaration fd; // function being interpreted
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18 Dsymbols vars; // variables used in this function
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
19 Statement start; // if !=NULL, start execution at this statement
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 Statement gotoTarget; // target of EXP_GOTO_INTERPRET result
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 Expression localThis; // value of 'this', or NULL if none
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
22 }