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
|
|
@ -0,0 +1,2 @@
|
|||
size = 'little'
|
||||
console.log "Mary had a #size lamb."
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
IMPORT STD;
|
||||
STD.Str.FindReplace('Mary had a X Lamb', 'X','little');
|
||||
|
|
@ -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"
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
X = 'little'
|
||||
println( "Mary had a $X lamb." )
|
||||
|
|
@ -0,0 +1 @@
|
|||
email_merge("Mary had a #adjective# lamb", map("token"="little", "adjective"=""), null, 'plain')
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
local str="little"
|
||||
put merge("Mary had a [[str]] lamb.")
|
||||
|
||||
-- Mary had a little lamb.
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
string size = "little"
|
||||
string s = sprintf("Mary had a %s lamb.",{size})
|
||||
?s
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
aString =substr("Mary had a X lamb.", "X", "little")
|
||||
see aString + nl
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
var extra = 'little';
|
||||
say "Mary had a #{extra} lamb";
|
||||
|
|
@ -0,0 +1 @@
|
|||
say ("Mary had a %s lamb" % 'little');
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
let extra = "little"
|
||||
println("Mary had a \(extra) lamb.")
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
"little" as $x
|
||||
| "Mary had a \($x) lamb"
|
||||
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue