[][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...