Skip to main content

LemonTreeNode

Trait LemonTreeNode 

Source
pub trait LemonTreeNode { }
Expand description

Marker trait implemented by every nonterminal symbol other than the start symbol.

Derive it with #[derive(LemonTreeNode)] on a struct or enum to make that type a nonterminal of the current parser. Attach the rules that produce it with #[lem("...")] attributes — on the struct itself, or on each enum variant. The start symbol uses LemonTree instead.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§