++inde indented block combinator no longer produces optimistic hair

This commit is contained in:
Anton Dyudin 2014-07-05 14:02:52 -07:00 committed by Anton Dyudin
parent dcd09da912
commit b44c6ff94c

View File

@ -2369,20 +2369,22 @@
vex vex
[p=p.vex q=[~ u=[p=(hez [p.tub p.q.u.q.vex] p.u.q.vex) q=q.u.q.vex]]] [p=p.vex q=[~ u=[p=(hez [p.tub p.q.u.q.vex] p.u.q.vex) q=q.u.q.vex]]]
:: ::
++ inde :: indentation block ++ inde |* sef=_rule :: indentation block
|* sef=_rule
|= nail ^+ (sef) |= nail ^+ (sef)
=+ [har tap]=[p q]:+< =+ [har tap]=[p q]:+<
=+ lev=(fil 3 (dec q.har) ' ') =+ lev=(fil 3 (dec q.har) ' ')
=+ roq=((star ;~(pose prn ;~(sfix (just `@`10) (jest lev)))) har tap) =+ roq=((star ;~(pose prn ;~(sfix (just `@t`10) (jest lev)))) har tap)
?~ q.roq roq ?~ q.roq roq
=+ vex=(sef har(q 1) ;;(tape p.u.q.roq)) =+ vex=(sef har(q 1) p.u.q.roq)
?~ q.vex vex(p p.roq) =+ fur=p.vex(q (add (dec q.har) q.p.vex))
=- [p.roq ~ &3.vex &4.vex(q.p (add (dec q.har) q.p.&4.vex)) -] ?~ q.vex vex(p fur)
=- vex(p fur, u.q -)
:+ &3.vex
&4.vex(q.p (add (dec q.har) q.p.&4.vex))
=+ res=|4.vex =+ res=|4.vex
|- ?~ res |4.roq |- ?~ res |4.roq
?. =(10 -.res) [-.res $(res +.res)] ?. =(10 -.res) [-.res $(res +.res)]
(welp [`@`10 (trip lev)] $(res +.res)) (welp [`@t`10 (trip lev)] $(res +.res))
:: ::
++ jest :: match a cord ++ jest :: match a cord
|= daf=@t |= daf=@t