Expand description
Recursive-descent parser that transforms a token stream into an AST.
§Operator Precedence (lowest → highest)
- Assignment (
=,+=,-=, …) - Logical OR (
||) - Logical AND (
&&) - Comparison (
==,!=,<,>,<=,>=) - Bitwise OR (
|) - Bitwise XOR (
^) - Bitwise AND (
&) - Shift (
<<,>>) - Additive (
+,-) - Multiplicative (
*,/,%) - Type cast (
as) - Unary (
-,!,&,*) - Postfix (
.method(),[index],(args)) - Primary (literals, identifiers, blocks, closures)
Structs§
- Parse
Error - A parse-time error with a human-readable message.
- Parser
- Recursive-descent parser for a subset of Rust syntax.