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/Literals-String/Sidef/literals-string-1.sidef
Normal file
4
Task/Literals-String/Sidef/literals-string-1.sidef
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
'single quotes with \'embedded quote\' and \\backslash';
|
||||
‚unicode single quoted’;
|
||||
%q(not interpolating with (nested) parentheses
|
||||
and newline);
|
||||
4
Task/Literals-String/Sidef/literals-string-2.sidef
Normal file
4
Task/Literals-String/Sidef/literals-string-2.sidef
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
var a = 42;
|
||||
"double \Uquotes\E with \"embedded quote\"\nnewline and variable interpolation: #{a} % 10 = #{a % 10}";
|
||||
„same as above”;
|
||||
%Q(same as above);
|
||||
13
Task/Literals-String/Sidef/literals-string-3.sidef
Normal file
13
Task/Literals-String/Sidef/literals-string-3.sidef
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
print <<EOT
|
||||
Implicit double-quoted (interpolates):
|
||||
a = #{a}
|
||||
EOT
|
||||
|
||||
print <<"EOD"
|
||||
Explicit double-quoted with interpolation:
|
||||
a = #{a}
|
||||
EOD
|
||||
|
||||
print <<'NON_INTERPOLATING'
|
||||
This will not interpolate: #{a}
|
||||
NON_INTERPOLATING
|
||||
Loading…
Add table
Add a link
Reference in a new issue