[][src]Struct lemon_mint::LemonMint

pub struct LemonMint { /* fields omitted */ }

The compiled parser that can be saved to a rust file. Use LemonMintBuilder to build it.

Implementations

impl LemonMint[src]

pub fn gen_rust<W>(&self, out: &mut W) -> Result<()> where
    W: Write
[src]

Generate Rust source code for the parser

pub fn gen_log<W>(
    &self,
    out: &mut W,
    basisflag: bool,
    show_precedence_conflict: bool
) -> Result<()> where
    W: Write
[src]

Generate a report of the parser generated. (the "y.output" file)

  • basisflag - Print only the basis in report
  • show_precedence_conflict - Show conflicts resolved by precedence rules

pub fn gen_y<W>(&self, out: &mut W) -> Result<()> where
    W: Write
[src]

Trait Implementations

impl Debug for LemonMint[src]

impl TryFrom<LemonMintBuilder> for LemonMint[src]

type Error = LemonMintError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl !RefUnwindSafe for LemonMint

impl !Send for LemonMint

impl !Sync for LemonMint

impl Unpin for LemonMint

impl !UnwindSafe for LemonMint

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.