test files

This commit is contained in:
Valk Richard Li 2019-09-22 04:55:17 -05:00 committed by GitHub
parent 843968307b
commit 82ffd94a07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 0 deletions

20
version1.0/call_ide.txt Normal file
View File

@ -0,0 +1,20 @@
id[0] and id[1];
1 or 2;
"str" ==1;
1*1/1+1;
2*3*4/1-2+3;
1-1+20-2*10;
id;
"str";
id(id);
id("str",1,1);
var e=1;
var x=10*2-20;
var id;
var id=[1,2,3,4];
var id={id:"str"};
id();
id.id();
id.id.id();
id[0].id.id(id,"str",1,2,3,4).id[10];
id(0)[1].id;

9
version1.0/func.txt Normal file
View File

@ -0,0 +1,9 @@
var f=func(n,m,dynamic...)
{
print(n+m," ",dynamic);
n=dynamic;
m=dynamic;
n+=m;
return dynamic;
};
print(f(1,1,0,0,0,0,0)[3]);

11
version1.0/loop.txt Normal file
View File

@ -0,0 +1,11 @@
while(n==1 )
{
print("str");
}
while(n==1 and "str"==str)
{
print("str");
}
i+=i1;