Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,36 @@
|
|||
require 'regex strings'
|
||||
|
||||
normalize=:3 :0
|
||||
seen=. a:
|
||||
eol=. {:;y
|
||||
t=. ''
|
||||
for_line.<;._2;y do. lin=. deb line=.>line
|
||||
if. '#'={.line do. t=.t,line,eol
|
||||
elseif. ''-:lin do. t =. t,eol
|
||||
elseif. do.
|
||||
line=. 1 u:([-.-.)&(32+i.95)&.(3&u:) line
|
||||
base=. ('^ *;;* *';'') rxrplc line
|
||||
nm=. ;name=. {.;:toupper base
|
||||
if. -. name e. seen do.
|
||||
seen=. seen, name
|
||||
t=. t,eol,~dtb ('; '#~';'={.lin),(('^(?i) *',nm,'\b *');(nm,' ')) rxrplc base
|
||||
end.
|
||||
end.
|
||||
end.t
|
||||
)
|
||||
|
||||
enable=:1 :0
|
||||
(<m) 1!:2~ normalize (,y,{:);<@rxrplc~&(y;~'^; *(?i)',y,'\b');.2]1!:1<m
|
||||
)
|
||||
|
||||
disable=:1 :0
|
||||
(<m) 1!:2~ normalize (,'; ',y,{:);<@rxrplc~&(('; ',y);~'^ *(?i)',y,'\b');.2]1!:1<m
|
||||
)
|
||||
|
||||
set=:1 :0
|
||||
:
|
||||
t=. 1!:1<m
|
||||
pat=. '^ *(?i)',y,'\b.*'
|
||||
upd=. y,' ',":x
|
||||
(<m) 1!:2~ normalize (,upd,{:);<@rxrplc~&(pat;upd) t
|
||||
)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
'example.file' disable 'needspeeling'
|
||||
'example.file' enable 'seedsremoved'
|
||||
1024 'example.file' set 'numberofbananas'
|
||||
62000 'example.file' set 'numberofstrawberries'
|
||||
Loading…
Add table
Add a link
Reference in a new issue