Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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)
|
||||
2
Task/Tokenize-a-string/TXR/tokenize-a-string-3.txr
Normal file
2
Task/Tokenize-a-string/TXR/tokenize-a-string-3.txr
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
txr -p '(cat-str (split-str "Hello,How,Are,You,Today" ",") ".")'
|
||||
Hello.How.Are.You.Today
|
||||
Loading…
Add table
Add a link
Reference in a new issue