Crate lexx

Source
Expand description

Rust Lex

The goal of this crate is to make interacting with the AST construct parts of Rust a little easier. It is more or less a high level wrapping around the various syntex_syntax crates. Those crates have partially complete documentation. This crate is the result of a few days of trial and error.

Some of the public types will force you to jump into the syntex crates, but it should only be inspecting tokens/error messages.

Structs§

Enums§

  • A delimiter token
  • Error Wrapper
  • When the main rust parser encounters a syntax-extension invocation, it parses the arguments to the invocation as a token-tree. This is a very loose structure, such that all sorts of different AST-fragments can be passed to syntax extensions using a uniform type.

Functions§

  • For deconstructor a branch of TokenTree into a usable type
  • Flatten TokenTree
  • For deconstructor a branch of TokenTree into a usable type
  • For dispatching to dr/sr for deconstructing TokenTrees