[−][src]Trait cfg::history::RewriteSequence
Trait for history types that allow the sequence rule to be rewritten into grammar rules.
Associated Types
type Rewritten
Must be an Action
, because all created grammar rules except the topmost one will have
no-op semantic action.
Required methods
fn top(
&self,
rhs: Symbol,
sep: Option<Symbol>,
new_rhs: &[Symbol]
) -> Self::Rewritten
&self,
rhs: Symbol,
sep: Option<Symbol>,
new_rhs: &[Symbol]
) -> Self::Rewritten
Returns a history. May record the rewrite.
fn bottom(
&self,
rhs: Symbol,
sep: Option<Symbol>,
new_rhs: &[Symbol]
) -> Self::Rewritten
&self,
rhs: Symbol,
sep: Option<Symbol>,
new_rhs: &[Symbol]
) -> Self::Rewritten
Returns a history. May record the rewrite.
Implementations on Foreign Types
impl<'a, T> RewriteSequence for &'a T where
T: RewriteSequence,
[src]
T: RewriteSequence,
type Rewritten = T::Rewritten
fn top(
&self,
rhs: Symbol,
sep: Option<Symbol>,
new_rhs: &[Symbol]
) -> Self::Rewritten
[src]
&self,
rhs: Symbol,
sep: Option<Symbol>,
new_rhs: &[Symbol]
) -> Self::Rewritten
fn bottom(
&self,
rhs: Symbol,
sep: Option<Symbol>,
new_rhs: &[Symbol]
) -> Self::Rewritten
[src]
&self,
rhs: Symbol,
sep: Option<Symbol>,
new_rhs: &[Symbol]
) -> Self::Rewritten