Add error messages when file not found + error position

This commit is contained in:
Krzosa Karol
2022-06-18 09:58:48 +02:00
parent 3ba8bd08fb
commit 499faac256
5 changed files with 19 additions and 16 deletions

View File

@@ -510,8 +510,8 @@ ast_module_namespace(Token *pos, Ast_Module *module, Intern_String name){
}
function Ast_Module *
ast_module(Intern_String filename){
AST_NEW(Module, MODULE, 0, 0);
ast_module(Token *pos, Intern_String filename){
AST_NEW(Module, MODULE, pos, 0);
result->parent_scope = 0;
result->kind = AST_MODULE;
result->name = filename;