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
4
Task/Here-document/8th/here-document.8th
Normal file
4
Task/Here-document/8th/here-document.8th
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
quote *
|
||||
Hi
|
||||
there
|
||||
* .
|
||||
5
Task/Here-document/Lingo/here-document-1.lingo
Normal file
5
Task/Here-document/Lingo/here-document-1.lingo
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
str = "This is the first line.\
|
||||
This is the second line.\
|
||||
This ""E&"line""E&" contains quotes."
|
||||
|
||||
put str
|
||||
2
Task/Here-document/Lingo/here-document-2.lingo
Normal file
2
Task/Here-document/Lingo/here-document-2.lingo
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
str = member("my long text").text
|
||||
put str
|
||||
4
Task/Here-document/Nim/here-document.nim
Normal file
4
Task/Here-document/Nim/here-document.nim
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
echo """Usage: thingy [OPTIONS]
|
||||
-h Display this usage message
|
||||
-H hostname Hostname to connect to
|
||||
"""
|
||||
38
Task/Here-document/Phix/here-document.phix
Normal file
38
Task/Here-document/Phix/here-document.phix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
string ts1 = """
|
||||
this
|
||||
"string"\thing"""
|
||||
|
||||
string ts2 = """this
|
||||
"string"\thing"""
|
||||
|
||||
string ts3 = """
|
||||
_____________this
|
||||
"string"\thing"""
|
||||
|
||||
string ts4 = `
|
||||
this
|
||||
"string"\thing`
|
||||
|
||||
string ts5 = `this
|
||||
"string"\thing`
|
||||
|
||||
string ts6 = `
|
||||
_____________this
|
||||
"string"\thing`
|
||||
|
||||
string ts7 = "this\n\"string\"\\thing"
|
||||
|
||||
constant tests={ts1,ts2,ts3,ts4,ts5,ts6,ts7}
|
||||
for i=1 to length(tests) do
|
||||
for j=1 to length(tests) do
|
||||
if tests[i]!=tests[j] then crash("error") end if
|
||||
end for
|
||||
end for
|
||||
printf(1,"""
|
||||
____________Everything
|
||||
(all %d tests)
|
||||
works
|
||||
just
|
||||
file.""",length(tests))
|
||||
printf(1,"""`""")
|
||||
printf(1,`"""`)
|
||||
11
Task/Here-document/Ring/here-document.ring
Normal file
11
Task/Here-document/Ring/here-document.ring
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
text ="
|
||||
<<'FOO'
|
||||
Now
|
||||
is
|
||||
the
|
||||
time
|
||||
for
|
||||
all
|
||||
good mem
|
||||
to come to the aid of their country."
|
||||
see text + nl
|
||||
9
Task/Here-document/SequenceL/here-document.sequencel
Normal file
9
Task/Here-document/SequenceL/here-document.sequencel
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
main :=
|
||||
"In SequenceL
|
||||
strings are
|
||||
multiline
|
||||
by default.
|
||||
'All' non-\"
|
||||
characters are
|
||||
valid for inclusion
|
||||
in a string.";
|
||||
4
Task/Here-document/Sidef/here-document-1.sidef
Normal file
4
Task/Here-document/Sidef/here-document-1.sidef
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var text = <<"EOF";
|
||||
a = #{1+2}
|
||||
b = #{3+4}
|
||||
EOF
|
||||
5
Task/Here-document/Sidef/here-document-2.sidef
Normal file
5
Task/Here-document/Sidef/here-document-2.sidef
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
var x = <<'FOO';
|
||||
No
|
||||
#{interpolation}
|
||||
here
|
||||
FOO
|
||||
4
Task/Here-document/Sidef/here-document-3.sidef
Normal file
4
Task/Here-document/Sidef/here-document-3.sidef
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
say (<<EOF + "lamb");
|
||||
Mary had
|
||||
a little
|
||||
EOF
|
||||
5
Task/Here-document/Sidef/here-document-4.sidef
Normal file
5
Task/Here-document/Sidef/here-document-4.sidef
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
say (<<EOF
|
||||
Mary had
|
||||
a little
|
||||
EOF
|
||||
+ "lamb");
|
||||
6
Task/Here-document/jq/here-document-1.jq
Normal file
6
Task/Here-document/jq/here-document-1.jq
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
def s:
|
||||
"x
|
||||
y
|
||||
z";
|
||||
|
||||
s
|
||||
2
Task/Here-document/jq/here-document-2.jq
Normal file
2
Task/Here-document/jq/here-document-2.jq
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ jq -n s.jq
|
||||
"x\ny\nz"
|
||||
6
Task/Here-document/jq/here-document-3.jq
Normal file
6
Task/Here-document/jq/here-document-3.jq
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
def specifier(a):
|
||||
"x
|
||||
\(a)
|
||||
z";
|
||||
|
||||
specifier("y")
|
||||
7
Task/Here-document/jq/here-document-4.jq
Normal file
7
Task/Here-document/jq/here-document-4.jq
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
"a
|
||||
tab: end
|
||||
parens:()
|
||||
single quotation mark:'
|
||||
double quotation mark must be escaped:\"
|
||||
b
|
||||
d"
|
||||
1
Task/Here-document/jq/here-document-5.jq
Normal file
1
Task/Here-document/jq/here-document-5.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
"a\ntab:\tend\nparens:()\nsingle quotation mark:'\ndouble quotation mark must be escaped:\"\nb\nd"
|
||||
Loading…
Add table
Add a link
Reference in a new issue