Tank grep done

This commit is contained in:
Anton Dyudin 2014-10-07 16:51:49 -07:00 committed by Anton Dyudin
parent b95bacc5bb
commit 0c6944433b

View File

@ -24,20 +24,36 @@
=+ sih=;;(sign sih) =+ sih=;;(sign sih)
?^ pax `+>.$ ?^ pax `+>.$
:_ +>.$ :_ +>.$
?- +<.sih ?- &2.sih
%nice %nice
[ost %give %nice ~]~ [ost %give %nice ~]~
%rush %rush
=+ lin=?-(+>-.sih %txt (trip p.sih), %tang ~(ram re -.p.sih))
=+ tag=(trip arg)
%- spam %- spam
|- ?- &3.sih
?: =(tag (scag (lent tag) lin)) %txt
?. (match (trip p.sih)) [%rush %tang ~]
+.sih +.sih
?~ lin %tang
[%rush %tang ~] =< [%rush %tang .]
$(lin t.lin) %+ murn p.sih
|= a=tank
^- (unit tank)
?- -.a
%leaf
?.((match p.a) ~ `a)
?(%palm %rose)
=. q.a (murn q.a ..$)
?~ q.a ~
(some a)
== ==
== ==
++ match
|= a=tape
=+ tag=(trip arg)
?: =(tag (scag (lent tag) a))
&
?~ a |
$(a t.a)
++ spam ++ spam
|* git=* |* git=*
%+ turn %+ turn