shrub/pkg/arvo/lib/ford-parser.hoon

67 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-03-13 21:34:17 +03:00
/- neo
2024-03-12 22:17:52 +03:00
|%
++ run
|= txt=@t
(scan (trip txt) apex:rein)
2024-03-13 21:34:17 +03:00
+$ lib
[face=(unit term) =name:neo]
+$ pro
[face=term =stud:neo]
2024-03-12 22:17:52 +03:00
+$ file
2024-03-13 21:34:17 +03:00
$: pro=(list pro)
lib=(list lib)
2024-03-12 22:17:52 +03:00
=hoon
==
++ rein
|%
2024-03-13 21:34:17 +03:00
++ nam
:: ^- $-(nail (like name:neo))
;~(plug ;~(pfix fas sig fed:ag) stip)
++ std
2024-03-12 23:49:45 +03:00
;~ pose
2024-03-13 21:34:17 +03:00
;~(plug sym ;~(pfix col sig fed:ag) ;~(pfix fas sym))
2024-03-20 18:15:51 +03:00
sym
2024-03-13 21:34:17 +03:00
==
++ pro
:: ^- $-(nail (like ^pro))
%+ rune pat
;~ pose
%+ cook
|= =stud:neo
?@ stud [stud stud]
[mark.stud stud]
std
;~(plug sym ;~(pfix gap std))
==
++ lib
:: ^- $-(nail (like ^lib))
%+ rune cen
;~ pose
(stag ~ nam)
;~(plug (stag ~ sym) ;~(pfix gap nam))
2024-03-12 23:49:45 +03:00
==
++ rune
|* [car=rule rul=rule]
(ifix [;~(plug fas car gap) gay] rul)
2024-03-13 21:34:17 +03:00
++ libs
:: ^- $-(nail (like (list ^lib)))
(star lib)
++ pros
:: ^- $-(nail (like (list ^pro)))
(star pro)
2024-03-12 22:17:52 +03:00
++ hone
2024-03-13 21:34:17 +03:00
:: ^- $-(nail (like hoon))
2024-03-12 22:17:52 +03:00
=+ vaz=vast
(ifix [gay gay] tall:vaz)
++ apex
:: ^- rule
2024-03-13 21:34:17 +03:00
;~ plug
pros
libs
hone
==
2024-03-12 22:17:52 +03:00
--
--