Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
require'regex'
|
||||
set=:4 :'(x)=:y'
|
||||
|
||||
cfgString=:4 :0
|
||||
y set ''
|
||||
(1;&,~'(?i:',y,')\s*(.*)') y&set rxapply x
|
||||
)
|
||||
|
||||
cfgBoolean=:4 :0
|
||||
y set 0
|
||||
(1;&,~'(?i:',y,')\s*(.*)') y&set rxapply x
|
||||
if.-.0-:y do.y set 1 end.
|
||||
)
|
||||
|
||||
taskCfg=:3 :0
|
||||
cfg=: ('[#;].*';'') rxrplc 1!:1<y
|
||||
cfg cfgString 'fullname'
|
||||
cfg cfgString 'favouritefruit'
|
||||
cfg cfgBoolean 'needspeeling'
|
||||
cfg cfgBoolean 'seedsremoved'
|
||||
i.0 0
|
||||
)
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
taskCfg 'fruit.conf'
|
||||
(,' = ',]&.do)&>;: 'fullname favouritefruit needspeeling seedsremoved'
|
||||
fullname = Foo Barber
|
||||
favouritefruit = banana
|
||||
needspeeling = 1
|
||||
seedsremoved = 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue