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,7 @@
String s1 = 'Hello ';
String s2 = 'Salesforce Developer!';
String s3 = s1+s2;
// Print output
System.debug(s3);

View file

@ -0,0 +1,5 @@
Lbl CONCAT
Copy(r₁,L₁,length(r₁))
Copy(r₂,L₁+length(r₁),length(r₂)+1)
L₁
Return

View file

@ -0,0 +1,3 @@
"Hello" => string A;
A + " World!" => string B;
<<< B >>>;

View file

@ -0,0 +1,6 @@
..........
S$="HELLO"
PRINT(S$;" LITERAL") ! or S$+" LITERAL"
S2$=S$+" LITERAL"
PRINT(S2$)
..........

View file

@ -0,0 +1,7 @@
' FB 1.05.0 Win64
Var s1 = "String"
Var s2 = s1 + " concatenation"
Print s1
Print s2
Sleep

View file

@ -0,0 +1,4 @@
local(x = 'Hello')
local(y = #x + ', World!')
#x // Hello
#y // Hello, World!

View file

@ -0,0 +1,4 @@
a = "Hello"
b = a & " world!"
put b
-- "Hello world!"

View file

@ -0,0 +1,3 @@
local str="live"
put str & "code" into str2
put str && str2

View file

@ -0,0 +1,6 @@
var str, str1 = "String"
echo(str & " literal.")
str1 = str1 & " literal."
echo(str1)
# -> String literal.

View file

@ -0,0 +1,4 @@
var str1 = "String"
echo(join([str1, " literal.", "HelloWorld!"], "~~"))
# -> String~~ literal.~~HelloWorld!

View file

@ -0,0 +1,4 @@
var str1 = "String"
echo "$# $# $#" % [str1, "literal.", "HelloWorld!"]
# -> String literal. HelloWorld!

View file

@ -0,0 +1 @@
"Hello" dup " World!" + .s

View file

@ -0,0 +1,11 @@
module stringcat;
extern printf;
@Integer main [
var a = "hello";
var b = a + " literal";
printf("%s\n", b);
return 0;
]

View file

@ -0,0 +1,5 @@
string s1 = "at" ?s1
string s2 = "c"&s1 ?s2
string s3 = "s"&s1 ?s3
string s4 = "m"&s1 ?s4
string s5 = "The "&s2&" "&s3&" on the "&s4&"." ?s5

View file

@ -0,0 +1,4 @@
aString = "Welcome to the "
bString = "Ring Programming Language"
see astring + bString + nl

View file

@ -0,0 +1,4 @@
var s = 'hello';
say s+' literal';
var s1 = s+' literal';
say s1;

View file

@ -0,0 +1,2 @@
s += ' literal';
say s;

View file

@ -0,0 +1,3 @@
let s1 = "Hello";
let s2 = " world!";
print(s1 .. s2); // prints "Hello world!"

View file

@ -0,0 +1,4 @@
let s = "hello"
println(s + " literal")
let s1 = s + " literal"
println(s1)

View file

@ -0,0 +1,9 @@
decl string s1 s2
# make s1 contain "hello "
set s1 "hello "
# set s2 to contain s1 and "world"
set s2 (+ s1 "world")
# outputs "hello world"
out s2 endl console

View file

@ -0,0 +1 @@
"hello" as $s | $s + " there!"