Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
15
Task/Generic-swap/Gri/generic-swap-1.gri
Normal file
15
Task/Generic-swap/Gri/generic-swap-1.gri
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
`Swap Vars &.a. &.b.'
|
||||
{
|
||||
new .temp.
|
||||
.temp. = \.word2.
|
||||
\.word2. = \.word3.
|
||||
\.word3. = .temp.
|
||||
delete .temp.
|
||||
}
|
||||
|
||||
.foo. = 123
|
||||
.bar. = 456
|
||||
Swap Vars &.foo. &.bar.
|
||||
|
||||
show .foo. " " .bar.
|
||||
# prints "456 123"
|
||||
15
Task/Generic-swap/Gri/generic-swap-2.gri
Normal file
15
Task/Generic-swap/Gri/generic-swap-2.gri
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
`Swap Syns &\a &\b'
|
||||
{
|
||||
new \temp
|
||||
\temp = "\.word2."
|
||||
\.word2. = "\.word3."
|
||||
\.word3. = "\temp"
|
||||
delete \temp
|
||||
}
|
||||
|
||||
\quux = "one"
|
||||
\xyzzy = "two"
|
||||
Swap Syns &\quux &\xyzzy
|
||||
|
||||
show "\quux \xyzzy"
|
||||
# prints "two one"
|
||||
Loading…
Add table
Add a link
Reference in a new issue