5d: Parser
+vang
Set +vast parameters.
Source
++ vang :: set ++vast params
|= [bug=? wer=path] :: bug: debug mode
%*(. vast bug bug, wer wer) :: wer: where we are+vast
Main parsing core.
Source
This core is too large to include here, please refer to hoon.hoon for the source.
+vest
Parse Hoon.
Parsing $rule. Parse Hoon of any form.
Source
Examples
+vice
Parse wide-form Hoon.
Parse .txt, a $knot containing wide-form Hoon, to $hoon.
Accepts
.t is a @ta.
Produces
$hoon.
Source
Examples
+make
Compile $cord to Nock.
Compile .txt, an $atom containing Hoon source code as little-endian UTF-8 text, to $nock.
Accepts
.t is a @.
Produces
$nock.
Source
Examples
+rain
Parse with % path.
Parse .txt, an $atom containing Hoon source code as little-endian UTF-8 text, to $hoon. Any % path short-hands are replaced with the path given in .bon. If parsing fails, .n is also printed to the terminal.
Accepts
.n is a $path.
.t is an $atom.
Produces
$hoon.
Source
Examples
+ream
Parse $cord to Hoon.
Parse .txt, an $atom containing Hoon source code as little-endian UTF-8 text, to $hoon.
Accepts
.t is an $atom.
Produces
$hoon.
Source
Examples
+reck
Parse Hoon file.
Parse .n to $hoon. .n is a $path to a .hoon file without the mark.
Accepts
.n is a $path.
Produces
$hoon.
Source
Examples
+ride
End-to-end compiler.
Parse and compile $cord .txt, producing a pair of its $type and compiled $nock. The .p argument specifies the $type of the subject.
Accepts
.p is a $type
.t is an $atom.
Produces
A (pair type nock).
Source
Examples
Last updated