Module parser

Source
Expand description

The parser

Modules§

assignment
An assignment.
atom
An atom.
chunk
A chunk.
comp
A comparison.
conjunct
||
disjunct
&&
expression
An expression.
factor
**
helpers
Helper methods.
inverse
!
metadata
Metadata for the WAG.
rhs
The right-hand-side of a rule.
rule
A rule.
sum
+ or -.
symbol
An individual symbol.
term
* or /.
terminal
A terminal.
wag
The full WAG tree.

Structs§

Parser
The main parser struct.

Enums§

WagParseError
Any of the various errors that can occur during parsing.

Traits§

Parse
The main trait for parsing.

Type Aliases§

ParseResult
Any parse will either return the node we are trying to parse, or a WagParseError.