annotate dmd/GlobalExpressions.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 10317f0c89a5
children 50a6d232176c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.GlobalExpressions;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
114
e28b18c23469 added a module dmd.common for commonly used stuff
Trass3r
parents: 0
diff changeset
3 import dmd.common;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.Expression;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 import dmd.TOK;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 import dmd.Loc;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 Expression EXP_CANT_INTERPRET;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9 Expression EXP_CONTINUE_INTERPRET;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 Expression EXP_BREAK_INTERPRET;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 Expression EXP_GOTO_INTERPRET;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 Expression EXP_VOID_INTERPRET;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 void* castToVoid(int i)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 return cast(void*)i;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
19 static this()
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 //EXP_CANT_INTERPRET = new Expression(Loc(0), TOK.init, 0);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
22 //EXP_CONTINUE_INTERPRET = new Expression(Loc(0), TOK.init, 0);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 //EXP_BREAK_INTERPRET = new Expression(Loc(0), TOK.init, 0);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
24 //EXP_GOTO_INTERPRET = new Expression(Loc(0), TOK.init, 0);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25 //EXP_VOID_INTERPRET = new Expression(Loc(0), TOK.init, 0);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
26
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
27 EXP_CANT_INTERPRET = cast(Expression)castToVoid(1);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
28 EXP_CONTINUE_INTERPRET = cast(Expression)castToVoid(2);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
29 EXP_BREAK_INTERPRET = cast(Expression)castToVoid(3);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
30 EXP_GOTO_INTERPRET = cast(Expression)castToVoid(4);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
31 EXP_VOID_INTERPRET = cast(Expression)castToVoid(5);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
32 }