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,4 @@
quote *
Hi
there
* .

View file

@ -0,0 +1,5 @@
str = "This is the first line.\
This is the second line.\
This "&QUOTE&"line"&QUOTE&" contains quotes."
put str

View file

@ -0,0 +1,2 @@
str = member("my long text").text
put str

View file

@ -0,0 +1,4 @@
echo """Usage: thingy [OPTIONS]
-h Display this usage message
-H hostname Hostname to connect to
"""

View 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,`"""`)

View 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

View file

@ -0,0 +1,9 @@
main :=
"In SequenceL
strings are
multiline
by default.
'All' non-\"
characters are
valid for inclusion
in a string.";

View file

@ -0,0 +1,4 @@
var text = <<"EOF";
a = #{1+2}
b = #{3+4}
EOF

View file

@ -0,0 +1,5 @@
var x = <<'FOO';
No
#{interpolation}
here
FOO

View file

@ -0,0 +1,4 @@
say (<<EOF + "lamb");
Mary had
a little
EOF

View file

@ -0,0 +1,5 @@
say (<<EOF
Mary had
a little
EOF
+ "lamb");

View file

@ -0,0 +1,6 @@
def s:
"x
y
z";
s

View file

@ -0,0 +1,2 @@
$ jq -n s.jq
"x\ny\nz"

View file

@ -0,0 +1,6 @@
def specifier(a):
"x
\(a)
z";
specifier("y")

View file

@ -0,0 +1,7 @@
"a
tab: end
parens:()
single quotation mark:'
double quotation mark must be escaped:\"
b
d"

View file

@ -0,0 +1 @@
"a\ntab:\tend\nparens:()\nsingle quotation mark:'\ndouble quotation mark must be escaped:\"\nb\nd"