Module parsel::util

source · []
Expand description

Helper functions, types and macros that didn’t fit anywhere else.

Structs

Helper type that formats a Span in a human-readable way.

Helper type for correctly and reasonably “pretty”-printing any TokenStream in a grammar- and language-agnostic way. This mostly means dealing with parentheses, so that nested structures don’t end up on one single long line.

Traits

Extension trait for formatting the span of AST nodes in a human-readable manner.