We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8db842e commit f4d2453Copy full SHA for f4d2453
src/main/java/org/piccode/ast/ImportAst.java
@@ -131,7 +131,9 @@ private List<Ast> loadModuleFromStdLib(String module) {
131
return Context.top.getCached(path);
132
}
133
134
- for (var fp : _file.listFiles()) {
+ var files = _file.listFiles();
135
+
136
+ for (var fp : files) {
137
if (fp.getName().endsWith(".pics")) {
138
var code = readFile(fp);
139
if (code == null) {
src/main/java/org/piccode/ast/VarDecl.java
@@ -25,7 +25,9 @@ public String toString() {
25
26
@Override
27
public PiccodeValue execute() {
28
+ Context.top.pushStackFrame(this);
29
var _value = value.execute();
30
+ Context.top.dropStackFrame();
31
Context.top.putLocal(name, _value);
32
return _value;
33
0 commit comments