Skip to main content

Module expr

Module expr 

Source
Expand description

Conlang’s Expression parser.

Enums§

Prec
Organizes the precedence hierarchy for syntactic elements
Ps
PseudoOperator: fake operators used to give certain tokens special behavior.

Functions§

from_bind 🔒
Returns the [BindOp], pattern precedence, arrow TKind, body precedence, and else precedence, (if applicable,) which controls the parsing of Bind expressions.
from_infix 🔒
Tries to map the incoming [Token] to an infix expression operator and its precedence level
from_prefix 🔒
Tries to map the incoming [Token] to a prefix expression operator and its precedence level
parse_array 🔒
Parses an array with 0 or more elements, or an array-repetition
parse_for 🔒
Parses a for loop expression