[][src]Trait arithmetic_parser::GrammarExt

pub trait GrammarExt: Grammar {
    fn parse_statements(
        input: Span<'_>
    ) -> Result<Block<'_, Self>, Spanned<'_, Error<'_>>>
    where
        Self: Sized
;
fn parse_streaming_statements(
        input: Span<'_>
    ) -> Result<Block<'_, Self>, Spanned<'_, Error<'_>>>
    where
        Self: Sized
; }

Extension trait for Grammar used by the client applications.

Required methods

fn parse_statements(
    input: Span<'_>
) -> Result<Block<'_, Self>, Spanned<'_, Error<'_>>> where
    Self: Sized

Parses a list of statements.

fn parse_streaming_statements(
    input: Span<'_>
) -> Result<Block<'_, Self>, Spanned<'_, Error<'_>>> where
    Self: Sized

Parses a potentially incomplete list of statements.

Loading content...

Implementors

impl<T: Grammar> GrammarExt for T[src]

Loading content...