Writing more real program and squashing bugs
This commit is contained in:
@@ -338,7 +338,7 @@ gen_ast(Ast *ast){
|
||||
}
|
||||
|
||||
CASE(LAMBDA, Decl){
|
||||
if(is_flag_set(node->flags, AST_FOREIGN)){
|
||||
if(is_flag_set(node->expr->flags, AST_FOREIGN)){
|
||||
gen("/*foreign*/");
|
||||
}
|
||||
gen_lambda(node->name, node->lambda);
|
||||
@@ -506,7 +506,8 @@ parse_files(Ast_Module *module){
|
||||
function void
|
||||
parse_all_modules(){
|
||||
parsing_time_begin = os_time();
|
||||
For(pctx->modules){
|
||||
for(S64 i = 0; i < pctx->modules.len; i++){
|
||||
Ast_Module *it = pctx->modules[i];
|
||||
parse_files(it);
|
||||
it->implicit_imports.add(pctx->builtins);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user