all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
5
Task/Tokenize-a-string/TXR/tokenize-a-string-1.txr
Normal file
5
Task/Tokenize-a-string/TXR/tokenize-a-string-1.txr
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@(next :list "Hello,How,Are,You,Today")
|
||||
@(coll)@{token /[^,]+/}@(end)
|
||||
@(output)
|
||||
@(rep)@token.@(last)@token@(end)
|
||||
@(end)
|
||||
5
Task/Tokenize-a-string/TXR/tokenize-a-string-2.txr
Normal file
5
Task/Tokenize-a-string/TXR/tokenize-a-string-2.txr
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@(next :list "Hello,How,Are,You,Today")
|
||||
@(coll)@(maybe)@token,@(or)@token@(end)@(end)
|
||||
@(output)
|
||||
@(rep)@token.@(last)@token@(end)
|
||||
@(end)
|
||||
1
Task/Tokenize-a-string/TXR/tokenize-a-string-3.txr
Normal file
1
Task/Tokenize-a-string/TXR/tokenize-a-string-3.txr
Normal file
|
|
@ -0,0 +1 @@
|
|||
@(bind result @(cat-str (split-str "Hello,How,Are,You,Today" ",") "."))
|
||||
Loading…
Add table
Add a link
Reference in a new issue