🐛 fix ast print bug & delete some macros

This commit is contained in:
ValKmjolnir
2022-10-30 18:40:03 +08:00
parent 0c216e5f16
commit aaccfbda11
13 changed files with 197 additions and 181 deletions

View File

@@ -19,7 +19,7 @@ var prt=func(){
}
s~='+--------------------+\n';
print(s);
unix.sleep(1/144);
unix.sleep(1/200);
}
var bfs=func(begin,end){

View File

@@ -2,6 +2,11 @@
# 2022/5/19
import.stl.process_bar;
if(os.platform()=="windows"){
system("chcp 65001");
system("color");
}
var fib=func(){
var (a,b)=(1,1);
coroutine.yield(a);
@@ -76,10 +81,6 @@ var total=1000; # ms
var co=coroutine.create(productor);
var tm=maketimestamp();
if(os.platform()=="windows"){
system("chcp 65001");
system("color");
}
var counter=0;
var bar=process_bar.high_resolution_bar(40);
var consumer=func(){

View File

@@ -25,7 +25,7 @@ var prt=func()
s~='\n';
}
print(s);
unix.sleep(1/144);
unix.sleep(1/160);
}
func(){