tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
|
|
@ -0,0 +1,19 @@
|
|||
(de markov (File Text)
|
||||
(use (@A @Z R)
|
||||
(let Rules
|
||||
(make
|
||||
(in File
|
||||
(while (skip "#")
|
||||
(when (match '(@A " " "-" ">" " " @Z) (replace (line) "@" "#"))
|
||||
(link (cons (clip @A) (clip @Z))) ) ) ) )
|
||||
(setq Text (chop Text))
|
||||
(pack
|
||||
(loop
|
||||
(NIL
|
||||
(find
|
||||
'((R) (match (append '(@A) (car R) '(@Z)) Text))
|
||||
Rules )
|
||||
Text )
|
||||
(T (= "." (cadr (setq R @)))
|
||||
(append @A (cddr R) @Z) )
|
||||
(setq Text (append @A (cdr R) @Z)) ) ) ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue