lexer,parser,import,codegen use the same error module.

This commit is contained in:
ValKmjolnir
2021-12-23 21:15:50 +08:00
parent bde94f8ec6
commit 1ae354c0cf
11 changed files with 160 additions and 136 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import("lib.nas");
var filename=["main.cpp","nasal_ast.h","nasal_builtin.h","nasal_codegen.h","nasal_gc.h","nasal_import.h","nasal_lexer.h","nasal_parse.h","nasal_vm.h","nasal_dbg.h","nasal.h"];
var space=[" "," ","",""," "," "," "," "," "," "," "];
var filename=["main.cpp","nasal_err.h","nasal_ast.h","nasal_builtin.h","nasal_codegen.h","nasal_gc.h","nasal_import.h","nasal_lexer.h","nasal_parse.h","nasal_vm.h","nasal_dbg.h","nasal.h"];
var space=[" "," "," ","",""," "," "," "," "," "," "," "];
var enter_cnt=func(s)
{
var (cnt,len,enter)=(0,size(s),'\n'[0]);
+4 -1
View File
@@ -30,7 +30,10 @@ var prt=func()
s~=elem~' ';
s~='\n';
}
system("cls");
if(os.platform()=="windows")
system("cls");
else
system("clear");
print(s);
}