4j: Parsing (Bases and Base Digits)
+ab
+abPrimitive parser engine.
A core containing numeric parser primitives.
Source
++ ab
|%Examples
> ab
<36.ecc 414.gly 100.xkc 1.ypj %164>+bix:ab
+bix:abParse hex pair.
Parsing $rule. Parses a pair of base-16 digits. Used in escapes.
Source
++ bix (bass 16 (stun [2 2] six))Examples
+fem:ab
+fem:abParse base58check char.
Parse a single base58check character.
Source
Examples
+haf:ab
+haf:abParse non-doz phonetic pair.
Parsing $rule. Parses an $atom of aura @pE, a phrase of two bytes encoded phonetically. If the leading syllable is .z (0), parsing will fail.
Source
Examples
+hef:ab
+hef:abParse non-dozzod phonetic pair.
Parsing $rule. Parses an $atom of aura @pE without leading ~ or .~, a phrase of two bytes encoded phonetically. If it's dozzod, parsing will fail.
Source
Examples
+hif:ab
+hif:abParse phonetic pair.
Parsing $rule. Parses an $atom of aura @pE, without leading ~ or .~. A phrase of two bytes encoded phonetically.
Source
Examples
+hof:ab
+hof:abParse 2-4 @q phonetic pairs.
Parsing $rule. Parses an $atom of aura @q (non-scrambled @p), without leading ~ or .~, of between two and four phrases.
Source
Example
+huf:ab
+huf:abParse 1-4 @q phonetic pairs.
Parsing $rule. Parses an $atom of aura @q (non-scrambled @p), without leading ~ or .~, of between one and four phrases.
Source
Examples
+hyf:ab
+hyf:abParse four @q phonetic pairs.
Parsing $rule. Parses an $atom of aura @q (non-scrambled @p), without leading ~ or .~, of exactly four phrases.
Source
Examples
+pev:ab
+pev:abParse 1-5 @uv base-32 chars.
Parsing $rule. Parses one to five @uv base-32 digits without the leading 0v or leading zeros.
Source
Examples
+pew:ab
+pew:abParse 1-5 @uw base-64 chars.
Parsing $rule. Parses one to five @uw base-64 digits without the leading 0w or leading zeros.
Source
Examples
+piv:ab
+piv:abParse 5 @uv base-32 chars.
Parsing $rule. Parses exactly five @uv base-32 digits without the leading 0v or leading zeros.
Source
Examples
+piw:ab
+piw:abParse 5 @uw base-64 chars.
Parsing $rule. Parses exactly five @uw base-64 digits without the leading 0w or leading zeros.
Source
Examples
+qeb:ab
+qeb:abParse 1-4 binary digits.
Parsing $rule. Parses a binary number of up to 4 digits in length without a leading zero.
Source
Examples
+qex:ab
+qex:abParse 1-4 hex digits.
Parsing $rule. Parses a hexadecimal number of up to 4 digits in length without a leading zero.
Source
Examples
+qib:ab
+qib:abParse 4 binary.
Parsing $rule. Parses exactly four binary digits - may have leading zeros.
Source
Examples
+qix:ab
+qix:abParse 4 hex.
Parsing $rule. Parses exactly four hexadecimal digits - may have leading zeros.
Source
Examples
+seb:ab
+seb:abParse 1.
Parsing $rule. Parses the number 1.
Source
Examples
+sed:ab
+sed:abParse decimal.
Parsing $rule. Parses a nonzero decimal digit.
Source
Examples
+sev:ab
+sev:abParse base-32.
Parsing $rule. Parses a nonzero base-32 digit.
Source
Examples
+sew:ab
+sew:abParse base-64.
Parsing $rule. Parses a nonzero base-64 digit.
Source
Examples
+sex:ab
+sex:abParse hex.
Parsing $rule. Parses a non-zero hexadecimal digit.
Source
Examples
+sib:ab
+sib:abParse binary.
Parsing $rule. Parses a binary digit.
Source
Examples
+sid:ab
+sid:abParse decimal.
Parsing $rule. Parses a decimal digit.
Source
Examples
+siv:ab
+siv:abParse base-32.
Parsing $rule. Parses a base-32 digit.
Source
Examples
+siw:ab
+siw:abParse base-64.
Parsing $rule. Parses a base-64 digit.
Source
Examples
+six:ab
+six:abParse hex.
Parsing $rule. Parses a hexadecimal digit.
Source
Examples
+sov:ab
+sov:abParse @uv base-32 letter.
Parsing $rule. Parses a @uv base-32 letter (but not a number).
Source
Examples
+sow:ab
+sow:abParse @uw base-64 letter/symbol.
Parsing $rule. Parses a base-64 letter/symbol (but not number).
Source
Examples
+sox:ab
+sox:abParse hex letter.
Parsing $rule. Parses a hexadecimal letter (but not number).
Source
Examples
+ted:ab
+ted:abParse 1-999 decimal.
Parsing $rule. Parses a decimal number of up to 3 digits without a leading zero.
Source
Examples
+tep:ab
+tep:abParse non-doz leading phonetic byte.
Parsing $rule. Parses the leading phonetic byte , which represents a syllable. Fails if it is .doz.
Source
Examples
+tip:ab
+tip:abLeading phonetic byte.
Parsing $rule. Parses the leading phonetic byte, which represents a syllable.
Source
Examples
+tiq:ab
+tiq:abTrailing phonetic syllable.
Parsing $rule. Parses the trailing phonetic byte, which represents a syllable.
Source
Examples
+tid:ab
+tid:abParse 3 decimal digits.
Parsing $rule. Parses exactly three decimal digits.
Source
Examples
+til:ab
+til:abParse 3 lowercase.
Parsing $rule. Parses exactly three lowercase letters.
Source
Examples
+urs:ab
+urs:abParse knot characters.
Parsing $rule. Parses characters from an $atom of the knot aura @ta.
Source
Examples
+urt:ab
+urt:abParse knot without underscores.
Parsing $rule. Parses all characters of the knot aura @ta except for cab, _.
Source
Examples
+voy:ab
+voy:abParse bas, soq, or bix.
Parsing $rule. Parses an escaped backslash \\, single quote \', or hex pair \0a byte.
Source
Examples
+ag
+agTop-level $atom parser engine.
A core containing top-level $atom parsers.
Source
+ape:ag
+ape:agParse 0 or $rule.
Parser modifier. Parses 0 or the sample $rule .fel.
Accepts
.l is a $rule.
Produces
A $rule.
Source
Examples
+bay:ag
+bay:agParses binary number.
Parsing $rule. Parses a binary number without a leading zero.
Source
Examples
+bip:ag
+bip:agParse IPv6.
Parsing $rule. Parses a @is, an IPv6 address.
Source
Examples
+dem:ag
+dem:agParse decimal with dots.
Parsing $rule. Parses a decimal number that includes dot separators.
Source
Examples
+dim:ag
+dim:agParse decimal number.
Parsing $rule. Parses a decimal number without a leading zero.
Source
Examples
+dum:ag
+dum:agParse decimal with leading 0.
Parsing $rule. Parses a decmial number with leading zeroes.
Source
Examples
+fed:ag
+fed:agParse phonetic base.
Parsing $rule. Parses an $atom of aura @p, the phonetic base.
Source
Examples
+feq:ag
+feq:agParse @q phonetic base.
Parsing $rule. Parses an $atom of aura @q (an unscrambled @p).
Source
Examples
+fim:ag
+fim:agParse base58check.
Parse a base58check value, check checksum, and return decoded value sans-checksum. If the checksum check fails, parsing will fail.
Source
Examples
With valid checksum:
With invalid checksum:
+hex:ag
+hex:agParse hex.
Parsing $rule. Parses a hexadecimal number
Source
Examples
+lip:ag
+lip:agParse IPv4 address.
Parsing $rule. Parses an IPv4 address.
Source
Examples
+mot:ag
+mot:agParse numerical month.
Parse a numerical month (1-12).
Source
Examples
+viz:ag
+viz:agParse Base-32 with dots.
Parsing $rule. Parses a Base-32 number with dot separators.
Source
Examples
+vum:ag
+vum:agParse base-32 string.
Parsing $rule. Parses a raw base-32 string (without dots).
Source
Examples
+wiz:ag
+wiz:agParse base-64.
Parsing $rule. Parses a base-64 number.
Source
Examples
+mu
+muCore used to scramble 16-bit $atoms.
A door that contains arms that are used to scramble two $atoms, .p and .bot. Used especially in the phonetic base to disguise the relationship between a planet and its star.
Accepts
.p is an $atom.
.t is an $atom.
Source
+zag:mu
+zag:muAdd bottom into top.
Produces the cell of .p and .t with .p scrambled to the result of adding .t to .p modulo 16. Used to scramble the name of a planet.
Accepts
.p & .t are $atoms, and are the sample of +mu.
Produces
A (pair @ @).
Source
Examples
+zig:mu
+zig:muSubtract bottom from top.
The inverse of +zag. Produces the cell of .p and .t with .p unscrambled. The unscrambled .p is the sum of the sample .p and the 16-bit complement of .bot. Used to unscramble the name of the planet.
Accepts
.p & .t are $atoms, and are the sample of +mu.
Produces
A (pair @ @).
Source
Examples
+zug:mu
+zug:muConcatenate into $atom.
Produces the concatenation of .p and .bot. Used to assemble a planet name.
Accepts
.p & .t are $atoms, and are the sample of +mu.
Produces
An $atom.
Source
Examples
+ne
+neDigit rendering engine.
A door containing arms that render digits at bases 10, 16, 32, and 64.
Accepts
.g is an $atom.
Source
+c:ne
+c:neRender base58check.
Render a single base58check character.
Accepts
.g is an $atom, and is the sample of +ne.
Produces
An $atom.
Source
Examples
+d:ne
+d:neRender decimal.
Renders a decimal digit as an $atom of an ACII byte value.
Accepts
.g is an $atom, and is the sample of +ne.
Produces
An $atom.
Source
Examples
+x:ne
+x:neRender hex.
Renders a hexadecimal digit as an $atom of an ASCII byte value.
Accepts
.g is an $atom, and is the sample of +ne.
Produces
An $atom.
Source
Examples
+v:ne
+v:neRender base-32.
Renders a base-32 digit as an $atom of an ASCII byte value.
Accepts
.g is an $atom, and is the sample of +ne.
Produces
An $atom.
Source
Examples
+w:ne
+w:neRender base-64.
Renders a base-64 digit as an $atom of an ASCII byte value.
Accepts
.g is an $atom, and is the sample of +ne.
Produces
An $atom.
Source
Examples
Last updated