Module expression

Source
Expand description

§Function-like Expression Language

Structs§

Tree
A token of the form x(...) or x

Enums§

ParseThresholdError
Error parsing a threshold expression.

Constants§

INPUT_CHARSET
Allowed characters are descriptor strings.
VALID_CHARS
Map of valid characters in descriptor strings.

Traits§

FromTree
A trait for extracting a structure from a Tree representation in token form

Functions§

binary
Attempts to parse an expression with exactly two children
check_valid_chars
Filter out non-ASCII because we byte-index strings all over the place and Rust gets very upset when you splinch a string.
parse_num
Parse a string as a u32, for timelocks or thresholds
terminal
Attempts to parse a terminal expression
unary
Attempts to parse an expression with exactly one child