shrub/pkg
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
..
arvo hoon, dprint: change doccords syntax to :: 2022-11-15 18:25:29 -05:00
base-dev Merge branch 'master' into next/landscape 2022-06-03 10:48:39 -05:00
bitcoin lull: bump app kelvins to 418 2022-04-29 19:25:00 -07:00
btc-wallet interface: fixing react-codemirror2 dep 2022-06-17 14:59:28 -05:00
docker-image docker: update documentation 2021-04-25 12:02:56 -04:00
ent repo: fix ent build on mingw 2022-03-25 15:16:39 -06:00
garden landscape: [skip actions] update glob (0v5.kgrq2.gp725.bo5bk.dmr7d.h41qk) 2022-06-23 11:15:50 -07:00
garden-dev hark-store: fix ship parsing 2022-03-28 10:13:52 -06:00
grid ops: fixing build 2022-06-23 12:24:39 -05:00
herb Revert "Revert "Merge naive/aggregator into poprox/naive-tests"" 2021-08-19 16:09:28 -07:00
hs Merge branch 'master' into next/vere 2021-12-17 23:38:22 -05:00
interface rich-text: removing broken plugin, reverting react-md to 5.0.3 for compat 2022-06-27 11:40:31 -05:00
landscape groups: update glob (0v4.2se6m.fvv67.nn5e8.vfrv9.mmi88)[skip actions] 2022-06-13 16:59:14 -07:00
npm meta: version bump for new changes from next/landscape 2022-06-21 14:52:20 -05:00
urbit vere: bumps version to v1.9 2022-06-01 03:24:50 -04:00
urcrypt urcrypt: correct parameter ordering in urcrypt_ed_veri() 2022-05-06 22:57:57 +00:00
webterm lull: bump app kelvins to 418 2022-04-29 19:25:00 -07:00
symbolic-merge.sh pkg/symbolic-merge.sh from @Fang- 2021-08-30 20:19:16 +03:00