Merge pull request #6543 from urbit/jb/vang-compat

hoon: support configurable doccords parsing
This commit is contained in:
Ted Blackman 2023-05-02 10:41:07 -04:00 committed by GitHub
commit e4b4f25d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 10 deletions

View File

@ -118,7 +118,7 @@
|= [our=ship dir=beam]
|%
++ default-app %hood
++ hoon-parser (vang | (en-beam dir) &)
++ hoon-parser (vang | (en-beam dir))
++ our p.dir
::
++ parse-command-line ;~(sfix parse-command (star ace) (just '\0a'))
@ -309,7 +309,7 @@
++ parse-rood
:: XX should this use +hoon-parser instead to normalize the case?
::
=> (vang | (en-beam dir) &)
=> (vang | (en-beam dir))
;~ pose
rood
::
@ -1225,7 +1225,7 @@
:+ %clhp
[%rock %tas %cx]
%+ rash pax.source.com
rood:(vang | /(scot %p our.hid)/base/(scot %da now.hid) &)
rood:(vang | /(scot %p our.hid)/base/(scot %da now.hid))
::
%url [%ur (crip (en-purl:html url.source.com))]
%api !!
@ -1256,7 +1256,7 @@
%hoon
:* %do
%+ rash code.source.com
tall:(vang | /(scot %p our.hid)/base/(scot %da now.hid) &)
tall:(vang | /(scot %p our.hid)/base/(scot %da now.hid))
$(num +(num), source.com next.source.com)
==
::

View File

@ -11425,11 +11425,12 @@
:: +vang: set +vast params
::
:: bug: debug mode
:: wer: where we are
:: doc: doccord parsing
:: wer: where we are
::
++ vang
|= [bug=? wer=path doc=?]
%*(. vast bug bug, wer wer, doc doc)
|= [f=$@(? [bug=? doc=?]) wer=path]
%*(. vast bug ?@(f f bug.f), doc ?@(f & doc.f), wer wer)
::
++ vast :: main parsing core
=+ [bug=`?`| wer=*path doc=`?`&]

View File

@ -969,7 +969,7 @@
==
::
%+ stag %tssg
(most gap tall:(vang & pax &))
(most gap tall:(vang & pax))
==
::
++ pant

View File

@ -44,7 +44,7 @@
==
::
%+ stag %tssg
(most gap tall:(vang & pax &))
(most gap tall:(vang & pax))
==
::
++ pant

View File

@ -683,7 +683,7 @@
|= tub=nail
%. tub
%+ stag (crip q.tub)
wide:(vang & [&1:% &2:% (scot %da now.bowl) |3:%] &)
wide:(vang & [&1:% &2:% (scot %da now.bowl) |3:%])
--
:: +tab-list: command descriptions
::