Module macro_railroad::lowering
source · Expand description
Intermediate representation of a MacroRules
and it’s transformations.
The representation in this module is more coarse than what the parser provides, yet has still more information than a diagram-node.
Structs
- Replaces macro-variants which start with certain literals with a
macro-internal
-comment. - A more coarse representation of
parser::MacroRules
. - Walks a
Matcher
-tree and collects allNonTerminals
as their Name/Fragment-combinations - Simplifies a Matcher-tree
- Tests if any
Matcher
matches a given predicate. - Unpacks all Groups in a Matcher
Enums
- A more coarse superset of
parser::Matcher
.
Traits
- A Visitor to walk
Matcher
. - A Visitor to walk
Matcher
and mutate it.