Crate espy_ears

Crate espy_ears 

Source
Expand description

§espy-ears (parser)

the parser consists of two major contexts: the expression and the block. expressions define a sequence of operations that produce a value, while blocks are capable of binding expressions to identifiers and disrupting control flow. an espy program should be interpreted as a “block” at its top level.

block parsing is “infallible”; instead of returning Result types, most ast nodes contain “diagnostics” fields to collect errors without giving up on parsing.

Structs§

Annotation
Binding
Block
BlockIter
Iterator type for a destructured Box<Block>
Diagnostics
Contains a list of the errors encountered by an ast node.
Enum
Expression
This type should not contain an incomplete expression so long as there are no error diagnostics.
ExpressionIter
Iterator type for a destructured Box<Expression>
Function
If
Let
Match
MatchCase
MatchIter
Iterator type for a destructured Box<Match>
NamedBinding
NamedSubBinding
NumericBinding
Rebind
RebindSubject
Sequence
Set
Use

Enums§

BindingMethod
BlockResult
Error
FunctionBody
Node
Components of an expression.
RebindBy
Statement