Skip to main content

Module parser

Module parser 

Source
Expand description

Recursive-descent parser that transforms a token stream into an AST.

§Operator Precedence (lowest → highest)

  1. Assignment (=, +=, -=, …)
  2. Logical OR (||)
  3. Logical AND (&&)
  4. Comparison (==, !=, <, >, <=, >=)
  5. Bitwise OR (|)
  6. Bitwise XOR (^)
  7. Bitwise AND (&)
  8. Shift (<<, >>)
  9. Additive (+, -)
  10. Multiplicative (*, /, %)
  11. Type cast (as)
  12. Unary (-, !, &, *)
  13. Postfix (.method(), [index], (args))
  14. Primary (literals, identifiers, blocks, closures)

Structs§

ParseError
A parse-time error with a human-readable message.
Parser
Recursive-descent parser for a subset of Rust syntax.