Module pest::pratt_parser

source ·
Expand description

Constructs useful in prefix, postfix, and infix operator parsing with the Pratt parsing method.

Structs§

  • An operator that corresponds to a rule.
  • Struct containing operators and precedences, which can perform Pratt parsing on primary, prefix, postfix and infix expressions over Pairs. The tokens in Pairs should alternate in the order: prefix* ~ primary ~ postfix* ~ (infix ~ prefix* ~ primary ~ postfix*)*
  • Product of calling map_primary on PrattParser, defines how expressions should be mapped.

Enums§