First send text from snippet editor to ride
below, using the span of whichever subject
I've explicitly defined. How do I go about defining the subject which snippets are
run against? Call ride
, with span as *
, which will produce Nock. Then take the Nock
and run it with .*
.
++ ride :: end-to-end compiler
|= {typ/span txt/@}
^- (pair span nock)
(~(mint ut typ) %noun (ream txt))
::
Pretty printer: text
calls deal:us
that takes a span and a noun and prints the noun
according to the rules of span. It prints that to the printable format tank
. deal:us
is
vase
-> tank
, as is cell
. re
core takes tank
and produces a tape
. ram:re
and
deal:us
are combined in text
.
Experiment with building custom subjects instead of the one that apps get by default. Maybe mimic the ones that generators get.
=rid (ride p:!>(.) '42')
(text p.rid .*(. q.rid))