Commit Graph

1568 Commits

Author SHA1 Message Date
drbeefsupreme
5fc3b3fd0f hoon, dprint: change doccords syntax to ::
this constitutes a pretty major rework of how whitespace is handled in
hoon in order to change the doccords syntax from :> and :< to ::.

in summary: throughout the hoon parser (+vast) many instances of +gap
have been replaced by +jump, which first tries to remove whitespace (+leap)
until it arrives at something that can be parsed as a prefix
doccord (+apex:docs:vast). if it does not encounter a doccord, it
instead uses +gap as normal.

if you follow along with the parser, you will notice that every time
jump is called, it then tries to call +apex:docs via +scye or +seam. if
apex:docs succeeds, it will end up consuming a newline at the end,
hiding the fact that there was valid whitespace from the parser. thus
+apex:docs then inserts a newline after successfully parsing a prefix
doccord, which will then be consumed by a subsequent invocation of +gap,
ensuring that there was proper whitespace if the doccord would have been
consumed by +gap instead of +leap.

there are a few other changes:

+hint in the compiler throws out doccords attached to %noun types. this
was already the behavior before doccords, and the change was made before
i understood what i was doing.

similarly for commenting out the %note case in +open:ap - this was an
earlier mistake

postfix comments for chapters are now enabled.

+expx was unused and removed in order to be rid of the
convention-defying +exp1. other unused +ex(p/q)* were commented out.

arms that handle batch comments (+glow and +whap) were refactored

+toad, which was used to change between tall and wide form, tries to
+jump before +gap. since +jump is ;~(pose leap:docs gap), i would have
thought that just using +jump there would be fine, but it fails for some
reason.

some parsers built with |@ were rewritten to use |*

|$ was made so that any doccords put on the spec are converted into hoon
doccords on the $ arm. it wouldn't compile otherwise. there's probably a
more principled way to do this but it works fine for now.
2022-11-15 18:25:29 -05:00
drbeefsupreme
c29512308f doccords: deco remove double comment 2022-07-06 18:59:01 -04:00
drbeefsupreme
73c0222d2e doccords: deco convention for +$ arms 2022-07-06 18:22:21 -04:00
drbeefsupreme
ef9297cfd7 doccords: these <-> other locations 2022-07-06 17:43:41 -04:00
drbeefsupreme
b7412d939c doccords: lib/deco remove informal comment 2022-07-06 17:31:55 -04:00
drbeefsupreme
4dd8b4d043 doccords: change :: in lib/deco to :> 2022-07-06 17:30:52 -04:00
drbeefsupreme
862f6cc899 doccords: update language in lib/deco 2022-07-06 17:28:14 -04:00
drbeefsupreme
948bd1e185 doccords: adds batch comment examples to lib/deco 2022-07-06 17:23:25 -04:00
drbeefsupreme
37343b6d87 doccords: add sample library lib/deco.hoon 2022-07-06 17:20:21 -04:00
drbeefsupreme
27135f1bb5 dprint: links -> cuff 2022-07-06 16:31:07 -04:00
drbeefsupreme
a4ca51009a dprint: fix syntax and test suite for new parser 2022-07-06 16:21:13 -04:00
drbeefsupreme
274bc167d0 dprint: remove erroneous sigpam 2022-07-01 17:11:38 -04:00
drbeefsupreme
b4d04444cd dprint: add missing doccords 2022-06-30 16:58:45 -04:00
drbeefsupreme
0f8f90c1fd dprint: simplify type to item interface
shouldn't need to surface recursion to the developer
2022-06-30 16:56:04 -04:00
drbeefsupreme
69b06e0ac3 dprint: add identifying glyphs to various items 2022-06-30 16:27:06 -04:00
drbeefsupreme
4b8cdd6f83 dprint: easier to read style changes 2022-06-30 15:14:56 -04:00
drbeefsupreme
5b65288268 dprint: add styled text first run
mostly just to get something working, next i will clean up syntax
2022-06-30 11:39:06 -04:00
drbeefsupreme
8f48f08f1a dprint: change to batch comment syntax 2022-06-28 12:12:03 -04:00
drbeefsupreme
6f66a6d7fd pprint: add %dict tag 2022-06-22 15:47:08 -04:00
drbeefsupreme
8cb392fbba dprint: comment for library 2022-06-09 16:21:48 -04:00
drbeefsupreme
a8e28cc632 dprint: remove chapter-id from %chapter item
redundant with the name
2022-06-09 15:19:39 -04:00
drbeefsupreme
832d483388 dprint: cleanup some logic around %hint types
deduplicating some code and making it a bit easier to understand. still
kind of a mess, but its progress and all tests are passing
2022-06-09 14:40:45 -04:00
drbeefsupreme
8f0bc304df dprint: help from hint uses second type, pass test
still not entirely sure what's different in the two types in a %hint
type, but this change made a bunch of the unit tests go from failing to passing
2022-06-09 13:46:21 -04:00
drbeefsupreme
62716ff976 dprint: name core containing types 2022-06-09 11:35:10 -04:00
drbeefsupreme
693226bca3 dprint: deduplicate role of +signify
some of the functionality of +signify was being done elsewhere, this
moves it into +signify
2022-06-09 11:33:29 -04:00
drbeefsupreme
f7d0d3e5a1 dprint: missed |^ in last commit 2022-06-09 11:18:10 -04:00
drbeefsupreme
605960eb3a dprint: simplify and fix core/chapter/arm search
the main issue fixed was with looking inside of chapters for arms didn't work
2022-06-09 11:04:09 -04:00
drbeefsupreme
a3ddde7cfc dprint: compile default arm in core against core
previously it was only compiling against the context, which meant it
broke if an arm referred to another arm
2022-06-08 15:41:04 -04:00
drbeefsupreme
0972c85e91 dprint: arms calling other arms dont steal doccord
i thought this would be a neat feature but ted called it too clever and
probably not what you really want. this code is atrocious though and
needs some serious cleanup
2022-06-08 15:39:40 -04:00
drbeefsupreme
6e02e35862 dprint: fix issues with core types
not actually sure this is correct yet, but it fixed the issue where
there would be a crash when looking for docs in an arm like +bar in
|%
++  foo  'foo'
++  bar  foo
--
2022-06-08 12:43:01 -04:00
drbeefsupreme
7e0d16d817 dprint: new core naming syntax
changes the syntax for cores named with :>  #  %corename to
|%  %core-name for the dprint and dprint testing library
2022-06-07 12:37:32 -04:00
drbeefsupreme
39ac7cb820 Merge branch 'master' into jon/doccords 2022-06-07 11:10:20 -04:00
Philip Monk
c091ec92eb various: make all files build correctly 2022-05-14 22:49:10 -07:00
Philip Monk
8a2eac7c70 Merge remote-tracking branch 'origin/ted/ames-prod-2' into philip/tomb 2022-05-14 21:17:10 -07:00
Philip Monk
e457a4c15e Merge remote-tracking branch 'origin/jm/homebase' into philip/tomb 2022-05-14 20:46:09 -07:00
Philip Monk
c029495ac5 helm: emit moon-breach in new event 2022-05-14 19:04:13 -07:00
Philip Monk
82bd5d15b1 Merge remote-tracking branch 'origin/next/arvo' into philip/tomb 2022-05-12 20:45:20 -07:00
Philip Monk
b29865a021
Merge pull request #5662 from urbit/philip/moon-self-breach
helm: add poke to helm to allow self-breaching moons
2022-05-12 20:24:50 -07:00
Philip Monk
e66b6b6a16 kiln: use %only-that for vats merges 2022-05-10 20:38:57 -07:00
Philip Monk
591bdf458c Merge branch 'next/arvo' into philip/tomb 2022-05-04 00:45:57 -07:00
Philip Monk
71d4f72ce1
Merge pull request #5647 from urbit/roller/batch-split
roller: add batch-trimming functionality
2022-05-03 14:34:12 -07:00
fang
4415aa781e
Merge branch 'next/arvo' into m/aqua-revival 2022-04-20 18:47:59 +02:00
Philip Monk
ed00d38166 clay: add |tomb 2022-04-08 21:20:02 -07:00
drbeefsupreme
dd71b7c788
doccords: dprint debug printfs 2022-04-07 13:05:58 -04:00
drbeefsupreme
b0230086ce
doccords: dprint chapter and overview print tweak
printing an overview only gives the summary now, not the details. also
fixed chapter printing so that it doesn't print the details twice
2022-04-07 12:55:30 -04:00
drbeefsupreme
b41b22ab70
doccords: dprint fix chapter printing 2022-04-07 12:42:55 -04:00
drbeefsupreme
7d8fabe6cf
doccords: dprint remove +shallow-match
it was factored into +find-item-in-type
2022-04-07 11:54:33 -04:00
drbeefsupreme
7a94319af3
dojo, doccords: dprint library can take list term
this allows you to search for foo:bar instead of just foo
2022-04-06 17:37:55 -04:00
drbeefsupreme
0e8cf3bbfa
doccords: dprint improve default arm core docs
the logic for getting the docs on the default arm of a core is now more
similar to how other arm docs are gotten, rather than having its own
system. there is still more room for improvement
2022-04-06 16:34:02 -04:00
drbeefsupreme
33b2761b39
doccords, dojo: move flop print-arm -> dy-inspect
this looks more sensible
2022-04-06 15:50:23 -04:00