We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30cf1b2 commit 0d114d0Copy full SHA for 0d114d0
1 file changed
src/org/rascalmpl/semantics/dynamic/Module.java
@@ -58,8 +58,18 @@ public Result<IValue> interpret(IEvaluator<Result<IValue>> eval) {
58
List<Toplevel> decls = this.getBody().getToplevels();
59
eval.__getTypeDeclarator().evaluateDeclarations(decls, eval.getCurrentEnvt(), false);
60
61
+ // first everything that is not a global
62
for (Toplevel l : decls) {
- l.interpret(eval);
63
+ if (!l.getDeclaration().isVariable()) {
64
+ l.interpret(eval);
65
+ }
66
67
+
68
+ // then the globals which may depend on the previous
69
+ for (Toplevel l : decls) {
70
+ if (l.getDeclaration().isVariable()) {
71
72
73
}
74
75
finally {
0 commit comments