Add tasks for all the new languages

This commit is contained in:
Tina Müller 2016-12-05 23:44:36 +01:00
parent 9dc3c2bb62
commit bba7bfd280
13208 changed files with 134745 additions and 0 deletions

View file

@ -0,0 +1,4 @@
Lbl STRCAT
Copy(r₂,r₁+length(r₁),length(r₂)+1)
r₁
Return

View file

@ -0,0 +1,9 @@
;; Solution from Common Lisp and Racket
(define-syntax-rule (set-append! str tail)
(set! str (string-append str tail)))
(define name "Albert") → name
(set-append! name " de Jeumont-Schneidre")
name
→ "Albert de Jeumont-Schneidre"

View file

@ -0,0 +1,6 @@
' FB 1.05.0 Win64
Var s = "String"
s += " append"
Print s
Sleep

View file

@ -0,0 +1,3 @@
local(x = 'Hello')
#x->append(', World!')
#x

View file

@ -0,0 +1,4 @@
str = "Hello"
put " world!" after str
put str
-- "Hello world!"

View file

@ -0,0 +1,2 @@
local str="live"
put "code" after str

View file

@ -0,0 +1,3 @@
var str = "123456"
str.add("78") # two ways
str &= "9!" # to append

View file

@ -0,0 +1 @@
StringBuffer new "Hello, " << "World!" << println

View file

@ -0,0 +1,2 @@
string s = "this string" ?s
s &= " is now longer" ?s

View file

@ -0,0 +1,4 @@
aString1 = "Welcome to the "
aString2 = "Ring Programming Language"
aString3 = aString1 + aString2
see aString3

View file

@ -0,0 +1,3 @@
var str = 'Foo';
str += 'bar';
say str;

View file

@ -0,0 +1,5 @@
var s = "foo" // "foo"
s += "bar" // "foobar"
print(s) // "foobar"
s.appendContentsOf("baz") // "foobarbaz"
print(s) // "foobarbaz"

View file

@ -0,0 +1,8 @@
decl string str
set str "hello "
# append "world" to str
set str (+ str "world")
# outputs "hello world"
out str endl console

View file

@ -0,0 +1,2 @@
s <- "12345678"
s <- (s + "9!")

View file

@ -0,0 +1,5 @@
"Hello" | . += ", world!"
["Hello"] | .[0] += ", world!" | .[0]
{ "greeting": "Hello"} | .greeting += ", world!" | .greeting

View file

@ -0,0 +1 @@
"Hello" as $a | $a | . += ", world!" as $a | $a