Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -4,46 +4,46 @@
|
|||
|
||||
* Read in blocks to construct the blocks string
|
||||
in1
|
||||
line = replace(input,&lcase,&ucase) :f(in1end)
|
||||
line ? breakx(' ') . pre ' ' rem . post :f(in1end)
|
||||
blocks = blocks "," pre post
|
||||
:(in1)
|
||||
line = replace(input,&lcase,&ucase) :f(in1end)
|
||||
line ? breakx(' ') . pre ' ' rem . post :f(in1end)
|
||||
blocks = blocks "," pre post
|
||||
:(in1)
|
||||
in1end
|
||||
|
||||
* Function to determine if a word can be constructed with the given blocks
|
||||
define('abc(blocks,word)s,i,let')
|
||||
abcpat = (breakx(',') ',') . pre (*let len(1) | len(1) *let) rem . post
|
||||
:(abc_end)
|
||||
define('abc(blocks,word)s,i,let')
|
||||
abcpat = (breakx(',') ',') . pre (*let len(1) | len(1) *let) rem . post
|
||||
:(abc_end)
|
||||
abc
|
||||
eq(size(word),0) :s(abc3)
|
||||
s = replace(word,&lcase,&ucase)
|
||||
i = 0
|
||||
eq(size(word),0) :s(abc3)
|
||||
s = replace(word,&lcase,&ucase)
|
||||
i = 0
|
||||
abc2
|
||||
i = lt(i,size(s)) i + 1 :f(abc4)
|
||||
let = substr(s,i,1)
|
||||
blocks ? abcpat = pre post :f(abc3)
|
||||
:(abc2)
|
||||
i = lt(i,size(s)) i + 1 :f(abc4)
|
||||
let = substr(s,i,1)
|
||||
blocks ? abcpat = pre post :f(abc3)
|
||||
:(abc2)
|
||||
abc3
|
||||
abc = 'False' :(abc5)
|
||||
abc = 'False' :(abc5)
|
||||
abc4
|
||||
abc = 'True' :(abc5)
|
||||
abc = 'True' :(abc5)
|
||||
abc5
|
||||
output = lpad('can_make_word("' word '"): ',26) abc
|
||||
abc = ""
|
||||
:(return)
|
||||
output = lpad('can_make_word("' word '"): ',26) abc
|
||||
abc = ""
|
||||
:(return)
|
||||
abc_end
|
||||
|
||||
* Check words
|
||||
* output = abc(blocks,"")
|
||||
* output = abc(blocks," ")
|
||||
output = abc(blocks,'A')
|
||||
output = abc(blocks,'bark')
|
||||
output = abc(blocks,'BOOK')
|
||||
output = abc(blocks,'TrEAT')
|
||||
output = abc(blocks,'COMMON')
|
||||
output = abc(blocks,'SQUAD')
|
||||
output = abc(blocks,'CONFUSE')
|
||||
|
||||
* output = abc(blocks,"")
|
||||
* output = abc(blocks," ")
|
||||
output = abc(blocks,'A')
|
||||
output = abc(blocks,'bark')
|
||||
output = abc(blocks,'BOOK')
|
||||
output = abc(blocks,'TrEAT')
|
||||
output = abc(blocks,'COMMON')
|
||||
output = abc(blocks,'SQUAD')
|
||||
output = abc(blocks,'CONFUSE')
|
||||
|
||||
* The blocks are entered below, after the following END label
|
||||
END
|
||||
b o
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue