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
21
Task/Special-characters/Lasso/special-characters.lasso
Normal file
21
Task/Special-characters/Lasso/special-characters.lasso
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# defined local ie. #mylocal will fail if not defined
|
||||
$ defined variable ie. $myvar will fail if not defined
|
||||
= assignment
|
||||
:= assign as return assigned value
|
||||
? ternary conditional true ? this
|
||||
| ternary else false ? this | that
|
||||
|| or
|
||||
&& and
|
||||
! negative operator
|
||||
{ open capture
|
||||
} close capture
|
||||
=> specify givenblock / capture
|
||||
-> invoke method: mytype->mymethod
|
||||
& retarget: mytype->mymethod& // returns mytype
|
||||
^ autocollect from capture: {^ 'this will be outputted' ^}
|
||||
:: tag prefix, ie. ::mytype->gettype // returns myype
|
||||
:: type constraint, ie. define mymethod(p::integer) => #i * 2
|
||||
\ escape method: ie. \mymethod->invoke(2)
|
||||
// comment
|
||||
/* open comment
|
||||
*/ close comment
|
||||
3
Task/Special-characters/Lingo/special-characters.lingo
Normal file
3
Task/Special-characters/Lingo/special-characters.lingo
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
str = "Hello " & QUOTE & "world!" & QUOTE
|
||||
put str
|
||||
-- "Hello "world!""
|
||||
1
Task/Special-characters/Nim/special-characters-1.nim
Normal file
1
Task/Special-characters/Nim/special-characters-1.nim
Normal file
|
|
@ -0,0 +1 @@
|
|||
var f = openFile(r"C:\texts\text.txt") # a raw string, so ``\t`` is no tab
|
||||
1
Task/Special-characters/Nim/special-characters-2.nim
Normal file
1
Task/Special-characters/Nim/special-characters-2.nim
Normal file
|
|
@ -0,0 +1 @@
|
|||
r"a""b"
|
||||
1
Task/Special-characters/Nim/special-characters-3.nim
Normal file
1
Task/Special-characters/Nim/special-characters-3.nim
Normal file
|
|
@ -0,0 +1 @@
|
|||
a"b
|
||||
1
Task/Special-characters/jq/special-characters.jq
Normal file
1
Task/Special-characters/jq/special-characters.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
^[a-zA-Z_][a-zA-Z_0-9]*$
|
||||
Loading…
Add table
Add a link
Reference in a new issue