Hash :
9c8911bd
Author :
Date :
2021-07-19T17:01:49
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
:: Arvo formal interface
::
:: this lifecycle wrapper makes the arvo door (multi-armed core)
:: look like a gate (function or single-armed core), to fit
:: urbit's formal lifecycle function. a practical interpreter
:: can ignore it.
::
|= [now=@da ovo=*]
^- *
~> %slog.[0 leaf+"arvo-event"]
.(+> +:(poke now ovo))
----------------------------------------------------
[
["comment", ":: Arvo formal interface"],
["comment", "::"],
["comment", ":: this lifecycle wrapper makes the arvo door (multi-armed core)"],
["comment", ":: look like a gate (function or single-armed core), to fit"],
["comment", ":: urbit's formal lifecycle function. a practical interpreter"],
["comment", ":: can ignore it."],
["comment", "::"],
["keyword", "|="],
" [",
["function", "now"],
"=",
["class-name", "@da"],
["function", "ovo"],
"=",
["class-name", "*"],
"]\r\n ",
["keyword", "^-"],
["class-name", "*"],
["keyword", "~>"],
["constant", "%slog"],
".[0 ",
["function", "leaf"],
"+",
["string", "\"arvo-event\""],
"]\r\n .(+> +:(",
["function", "poke"],
["function", "now"],
["function", "ovo"],
"))"
]
----------------------------------------------------
Tests for block comments and the inclusion of tapes and leaves inline in cells.