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,2 @@
size = 'little'
console.log "Mary had a #size lamb."

View file

@ -0,0 +1,2 @@
IMPORT STD;
STD.Str.FindReplace('Mary had a X Lamb', 'X','little');

View file

@ -0,0 +1,5 @@
;; format uses %a or ~a as replacement directive
(format "Mary had a ~a lamb" "little")
→ "Mary had a little lamb"
(format "Mary had a %a lamb" "little")
→ "Mary had a little lamb"

View file

@ -0,0 +1,9 @@
' FB 1.05.0 Win64
#Include "crt/stdio.bi" '' header needed for printf
Dim x As String = "big"
Print "Mary had a "; x; " lamb" '' FB's native Print statement
x = "little"
printf("Mary also had a %s lamb", x)
Sleep

View file

@ -0,0 +1,2 @@
X = 'little'
println( "Mary had a $X lamb." )

View file

@ -0,0 +1 @@
email_merge("Mary had a #adjective# lamb", map("token"="little", "adjective"=""), null, 'plain')

View file

@ -0,0 +1,4 @@
local str="little"
put merge("Mary had a [[str]] lamb.")
-- Mary had a little lamb.

View file

@ -0,0 +1,5 @@
import strutils
var str = "little"
echo "Mary had a $# lamb" % [str]
# doesn't need an array for one substitution, but use an array for multiple substitutions

View file

@ -0,0 +1,3 @@
string size = "little"
string s = sprintf("Mary had a %s lamb.",{size})
?s

View file

@ -0,0 +1,2 @@
aString =substr("Mary had a X lamb.", "X", "little")
see aString + nl

View file

@ -0,0 +1,2 @@
var extra = 'little';
say "Mary had a #{extra} lamb";

View file

@ -0,0 +1 @@
say ("Mary had a %s lamb" % 'little');

View file

@ -0,0 +1,2 @@
let extra = "little"
println("Mary had a \(extra) lamb.")

View file

@ -0,0 +1,2 @@
"little" as $x
| "Mary had a \($x) lamb"

View file

@ -0,0 +1,2 @@
$ jq -M -n -r '"Jürgen" as $x | "The string \"\($x)\" has \($x|length) codepoints."'
The string "Jürgen" has 6 codepoints.