aboutsummaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-04-21 11:22:11 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-04-21 11:22:11 -0400
commit3f10460a6e04f014d3fe7a911f6afa844f975585 (patch)
tree2f2cfe9e82e0b29925acef2b0cf677e5d70ba6ae /ast.c
parentaa66a38b08fcf26962e50c92b62cfa43b3c053f0 (diff)
Support loading imports as top-level statements
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ast.c b/ast.c
index e841089e..64464dc9 100644
--- a/ast.c
+++ b/ast.c
@@ -215,6 +215,7 @@ bool is_constant(ast_t *ast)
return is_constant(binop->lhs) && is_constant(binop->rhs);
}
}
+ case Use: return true;
default: return false;
}
}