Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Multisplit/TXR/multisplit-1.txr
Normal file
11
Task/Multisplit/TXR/multisplit-1.txr
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
@(next :args)
|
||||
@(coll :gap 0)@(choose :shortest tok)@\
|
||||
@tok@{sep /==/}@\
|
||||
@(or)@\
|
||||
@tok@{sep /!=/}@\
|
||||
@(or)@\
|
||||
@tok@{sep /=/}@\
|
||||
@(end)@(end)@tail
|
||||
@(output)
|
||||
@(rep)"@tok" {@sep} @(end)"@tail"
|
||||
@(end)
|
||||
2
Task/Multisplit/TXR/multisplit-2.txr
Normal file
2
Task/Multisplit/TXR/multisplit-2.txr
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ txr -p '(tok-str "a!===b=!=c" #/==|!=|=/ t)'
|
||||
("a" "!=" "" "==" "b" "=" "" "!=" "c")
|
||||
Loading…
Add table
Add a link
Reference in a new issue