Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Variables/Diego/variables-1.diego
Normal file
10
Task/Variables/Diego/variables-1.diego
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
add_var(v1);
|
||||
dim(v1);
|
||||
add_var(v1, v2, v3, v4);
|
||||
dim(v1, v2, v3, v4);
|
||||
add_var(isRaining)_datatype(boolean);
|
||||
dim(isRaining)_datatype(boolean);
|
||||
add_var(greeting)_dt(string);
|
||||
dim(greeting)_dt(string);
|
||||
add_var({date}, birthdate);
|
||||
dim({date}, birthdate);
|
||||
4
Task/Variables/Diego/variables-10.diego
Normal file
4
Task/Variables/Diego/variables-10.diego
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
add_str(bobName)_value(Bob);
|
||||
alert_human(bob)_msg(Hi [bobName]); // Hi Bob
|
||||
|
||||
alert_human(fred)_msg(Hi [fredName])_str(fredName)_value(Freddy); // Hi Freddy
|
||||
1
Task/Variables/Diego/variables-11.diego
Normal file
1
Task/Variables/Diego/variables-11.diego
Normal file
|
|
@ -0,0 +1 @@
|
|||
add_var(greeting)_value(Hello World)_me();
|
||||
1
Task/Variables/Diego/variables-12.diego
Normal file
1
Task/Variables/Diego/variables-12.diego
Normal file
|
|
@ -0,0 +1 @@
|
|||
with_me()_var(greeting)_value(Hello World);
|
||||
1
Task/Variables/Diego/variables-13.diego
Normal file
1
Task/Variables/Diego/variables-13.diego
Normal file
|
|
@ -0,0 +1 @@
|
|||
add_var(greeting)_value(Hello World);
|
||||
1
Task/Variables/Diego/variables-14.diego
Normal file
1
Task/Variables/Diego/variables-14.diego
Normal file
|
|
@ -0,0 +1 @@
|
|||
add_var(greeting)_value(Hello World)_for()_computer(cmp1);
|
||||
1
Task/Variables/Diego/variables-15.diego
Normal file
1
Task/Variables/Diego/variables-15.diego
Normal file
|
|
@ -0,0 +1 @@
|
|||
with_robot(alif)_msg(Hello World);
|
||||
1
Task/Variables/Diego/variables-16.diego
Normal file
1
Task/Variables/Diego/variables-16.diego
Normal file
|
|
@ -0,0 +1 @@
|
|||
with_robot()_msg(Hello World);
|
||||
1
Task/Variables/Diego/variables-17.diego
Normal file
1
Task/Variables/Diego/variables-17.diego
Normal file
|
|
@ -0,0 +1 @@
|
|||
with_computer()_msg(Hello World);
|
||||
1
Task/Variables/Diego/variables-18.diego
Normal file
1
Task/Variables/Diego/variables-18.diego
Normal file
|
|
@ -0,0 +1 @@
|
|||
with_computer()_os(windows)_msg(Hello World);
|
||||
37
Task/Variables/Diego/variables-19.diego
Normal file
37
Task/Variables/Diego/variables-19.diego
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
add_var(a); // a = undefined variant
|
||||
add_var({int},b); // b = undefined integer
|
||||
|
||||
with_var(a)_value(0); // a = 0 variant
|
||||
with_var({int},a)_v(1); // a = 1 integer
|
||||
with_var([a])_v(2); // a = 2 integer
|
||||
|
||||
with_var[a]_v(3);
|
||||
// same as `with_var(3)_v(3);`
|
||||
// callee will ask `with_var(3)_askdec();`
|
||||
|
||||
(a)_v(3); // a = 3 integer // same as `add_var(a)_v(3);`
|
||||
([a])_v(4); // a = 4 integer // same as `add_var([a])_v(4);`
|
||||
|
||||
[a]_v(5);
|
||||
// same as `with_var(3)_v(5);`
|
||||
// callee will ask `with_var(3)_askdec();`
|
||||
|
||||
(a)_calc([a]+1); // a = 5
|
||||
|
||||
add_var({str},varname)_v(a);
|
||||
with_var[varname]_v(6); // a = 6 integer
|
||||
[varname]_inc(); // a = 7 integer // same as `with_var(a)_inc();`
|
||||
|
||||
with_var([a]+1); // a = 6 integer
|
||||
with_var([a]+1)_v(7); // a = 8 integer
|
||||
|
||||
with_var([[varname]]+1); // a = 9 integer
|
||||
with_var[[varname]]_inc(); // a = 10 integer
|
||||
with_var([varname]+1); // varname = "a1"
|
||||
|
||||
with_var({double},a)_v(11); // a = 11.0 double
|
||||
|
||||
(varname)_v(a)_inc(2); // varname = "c" // same as `with_var(a)_v(a)_inc(2);`
|
||||
with_var(varname)_v(b); // varname = "b"
|
||||
with_var[varname]_v(0); // b = 0
|
||||
([varname])_v(1); // b = 1 // same as `with_var(b)_v(1);`
|
||||
3
Task/Variables/Diego/variables-2.diego
Normal file
3
Task/Variables/Diego/variables-2.diego
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
go_robot(alif)_waypoint(waypoint1)_addvar({bool},alifArriveWaypoint1);
|
||||
go_robot(beh)_waypoint(waypoint1)_var({bool},behArriveWaypoint1);
|
||||
go_robot(teh)_waypoint(waypoint1)_dim({bool},tehArriveWaypoint1);
|
||||
7
Task/Variables/Diego/variables-20.diego
Normal file
7
Task/Variables/Diego/variables-20.diego
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
alert_human(jo)_msg(Hi [])_str(joeName)_v(Joe); // Hi Joe
|
||||
|
||||
alert_human(gab)_msg(Hi [])_str()_v(Gabriella); // Hi Gabriella
|
||||
|
||||
alert_human(annamarie)_msg(Hi [])_str([a]+'-'[m])_str(a)_v(Anna)_str(m)_v(Marie); // Hi Anna-Marie
|
||||
alert_human(annamarie)_msg(Hi []+'-'+[])_str()_v(Anna)_str()_v(Marie); // Hi Anna-Marie
|
||||
alert_human(annamarie)_msg(Hi [])_str([]+'-'[])_str()_v(Anna)_str()_v(Marie); // Hi Anna-Marie
|
||||
3
Task/Variables/Diego/variables-21.diego
Normal file
3
Task/Variables/Diego/variables-21.diego
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
alert_human(jill)_msg(Hi [jillName] Daniels)_var(jillName)_value(Jill); // Hi Jill Daniels
|
||||
alert_human(jill)_msg('Hi '+[jillName]+' Daniels')_var(jillName)_value(Jill); // Hi Jill Daniels
|
||||
add_var(jillFullName)_calc([jillName]+" Daniels");
|
||||
4
Task/Variables/Diego/variables-3.diego
Normal file
4
Task/Variables/Diego/variables-3.diego
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
add_var({integer},wholeNumber1,wholeNumber2)_value(3);
|
||||
dim({double},realNumber)_v(3.0);
|
||||
add_var({boolean},isRaining)_v(false);
|
||||
add_var(greeting)_datatype(string)_value(Hello, this is World speaking.);
|
||||
2
Task/Variables/Diego/variables-4.diego
Normal file
2
Task/Variables/Diego/variables-4.diego
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
with_var(birthdate)_value(24-Jun-1963);
|
||||
[myinteger]_value(33);
|
||||
2
Task/Variables/Diego/variables-5.diego
Normal file
2
Task/Variables/Diego/variables-5.diego
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[myYearVar]_v(1963);
|
||||
[datename]_v(24-Jun-[myYearVar]);
|
||||
3
Task/Variables/Diego/variables-6.diego
Normal file
3
Task/Variables/Diego/variables-6.diego
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
with_var(d)_calc([b]^2-4*[a]*[c]);
|
||||
with_var(E)_calc([m]*[c]^2);
|
||||
with_var(d)_calc([b]^2-4*[a]*[c]);
|
||||
3
Task/Variables/Diego/variables-7.diego
Normal file
3
Task/Variables/Diego/variables-7.diego
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
with_var(E)_equals(m)_multipl(c)_sq(); // E=mc²
|
||||
with_var(c)_inc(); // increment by one
|
||||
with_var(c)_inc(a); // same as with_var(c)_exp(+=[a]);
|
||||
3
Task/Variables/Diego/variables-8.diego
Normal file
3
Task/Variables/Diego/variables-8.diego
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(E)_equals(m)_multipl(c)_sq(); // E=mc²
|
||||
(c)_inc(); // increment by one
|
||||
(c)_inc(a); // same as [c]_exp(+=[a]);
|
||||
4
Task/Variables/Diego/variables-9.diego
Normal file
4
Task/Variables/Diego/variables-9.diego
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
add_var(wholeNumber)_datatype(integer);
|
||||
dim({double},myNumber)_v(3.0);
|
||||
with_var(wholenumber)_datatype(integer);
|
||||
with_var({boolean},isRaining)_value(false); // cast/converting datatype
|
||||
Loading…
Add table
Add a link
Reference in a new issue