add keyword support 'true' and 'false'

true is now number 1.0

false is number 0.0
This commit is contained in:
ValKmjolnir
2023-01-16 17:44:56 +08:00
parent 8df02d25ad
commit d03273b4e1
11 changed files with 95 additions and 51 deletions

View File

@@ -51,6 +51,7 @@ z.funcc(); #//f is called
println(z.funcccall); #//func(..){..}
z2.listt2[3].hashh.funcc(); #//f is called
println(y1[f2()][w]); #//hello
println(true,' ',false); #//1 0
# ValKmjolnir

View File

@@ -203,5 +203,5 @@ foreach(i;a){
}
println(runtime.argv());
func(a,b,c,d="只有红茶可以吗"){
println(a,' ',b,' ',c,' ',d);
println(a,' ',b,' ',c,' ',d,' true: ',true,' false: ',false);
}(c:1919810,b:514,a:114);