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 @@
'A'

View file

@ -0,0 +1 @@
"ABC"

View file

@ -0,0 +1,2 @@
'I\'m a 2" string\n'
"I'm a 2\" string\n"

View file

@ -0,0 +1 @@
`I'm also a 2" string\n`

View file

@ -0,0 +1,3 @@
str = "Hello "&QUOTE&"world!"&QUOTE
put str
-- "Hello "world!""

View file

@ -0,0 +1,3 @@
str = "This is the first line.\
This is the second line.\
This is the third line."

View file

@ -0,0 +1,6 @@
template = QUOTE&"Milliseconds since last reboot: "&QUOTE&"&_system.milliseconds"
-- expand template in current context
str = value(template)
put str
-- "Milliseconds since last reboot: 20077664"

View file

@ -0,0 +1,5 @@
put "Literal string" -- Literal string
put char 1 of "Literal string" -- L
put char 1 to 7 of "Literal string" -- Literal
put word 1 of "Literal string" -- Literal
put quote & "string" & quote -- "string"

View file

@ -0,0 +1,7 @@
var c = 'c'
var s = "foobar"
var l = """foobar
and even
more test here"""
var f = r"C:\texts\text.txt" # Raw string

View file

@ -0,0 +1,5 @@
'a'
'\''
"abcd"
"ab\ncd"
"ab\" and \" cd"

View file

@ -0,0 +1 @@
constant UPPERCASEJ = 'J' -- equivalent to 74

View file

@ -0,0 +1,2 @@
constant hw = "Hello World!",
mt = "" -- empty string

View file

@ -0,0 +1 @@
s = "日本語"

View file

@ -0,0 +1,4 @@
string s = "food"
s[2..3] = 'e' -- s is now "feed" (replace all)
s[2..2] = "east" -- s is now "feasted" (replace substring)
s[2..5] = "" -- s is now "fed"

View file

@ -0,0 +1,12 @@
ts = """
this
string\thing"""
ts = """
_____this
string\thing"""
ts = 'this
string\thing'
ts = "this\nstring\\thing"

View file

@ -0,0 +1 @@
?x"68 65 6c 6c 6f"; -- displays "hello"

View file

@ -0,0 +1 @@
see 'This is a "quoted string"'

View file

@ -0,0 +1,4 @@
'single quotes with \'embedded quote\' and \\backslash';
unicode single quoted;
%q(not interpolating with (nested) parentheses
and newline);

View file

@ -0,0 +1,4 @@
var a = 42;
"double \Uquotes\E with \"embedded quote\"\nnewline and variable interpolation: #{a} % 10 = #{a % 10}";
„same as above”;
%Q(same as above);

View file

@ -0,0 +1,13 @@
print <<EOT
Implicit double-quoted (interpolates):
a = #{a}
EOT
print <<"EOD"
Explicit double-quoted with interpolation:
a = #{a}
EOD
print <<'NON_INTERPOLATING'
This will not interpolate: #{a}
NON_INTERPOLATING

View file

@ -0,0 +1,7 @@
let you = "You"
let str1 = "\(you) can insert variables into strings."
let str2 = "Swift also supports unicode in strings ı∫ƒ∂ß´™¡à"
let str3 = "Swift also supports control characters \n\tLike this"
let str4 = "'" // '
let str5 = "\"" // "
println(str3)