[−][src]Struct libslide::parser::statement_parser::ExpressionParser
Fields
_input: PeekIter<Token>
program: &'a str
diagnostics: Vec<Diagnostic>
Implementations
impl<'a> ExpressionParser<'a>
[src]
fn new(input: Vec<Token>, program: &'a str) -> Self
[src]
fn parse_stmt(&mut self) -> Stmt
[src]
fn parse_pattern(&mut self, name: String, span: Span) -> RcExpr
[src]
fn peek_content(&mut self) -> &str
[src]
Returns the full content of the current (peeked) token.
Trait Implementations
impl<'a> Parser<StmtList> for ExpressionParser<'a>
[src]
type Expr = RcExpr
fn input(&mut self) -> &mut PeekIter<Token>ⓘ
[src]
fn push_diag(&mut self, diagnostic: Diagnostic)
[src]
fn parse(&mut self) -> StmtList
[src]
fn parse_float(&mut self, f: f64, span: Span) -> Self::Expr
[src]
fn parse_variable(&mut self, name: String, span: Span) -> Self::Expr
[src]
fn parse_var_pattern(&mut self, name: String, span: Span) -> Self::Expr
[src]
fn parse_const_pattern(&mut self, name: String, span: Span) -> Self::Expr
[src]
fn parse_any_pattern(&mut self, name: String, span: Span) -> Self::Expr
[src]
fn has_stmt_break(&mut self) -> bool
[src]
Do we have another statement (on a newline)?
fn parse_open_paren(&mut self, open: Token) -> Self::Expr
[src]
fn parse_open_bracket(&mut self, open: Token) -> Self::Expr
[src]
fn done(&mut self) -> bool
[src]
fn expr(&mut self) -> Self::Expr
[src]
fn peek(&mut self) -> &Token
[src]
fn next(&mut self) -> Token
[src]
fn add_sub_term(&mut self) -> Self::Expr
[src]
fn mul_divide_mod_term(&mut self) -> Self::Expr
[src]
fn exp_term(&mut self) -> Self::Expr
[src]
fn num_term(&mut self) -> Self::Expr
[src]
fn extra_tokens_diag(
&mut self,
additional_diags: impl Fn(Diagnostic, Span) -> Diagnostic
)
[src]
&mut self,
additional_diags: impl Fn(Diagnostic, Span) -> Diagnostic
)
Auto Trait Implementations
impl<'a> RefUnwindSafe for ExpressionParser<'a>
impl<'a> Send for ExpressionParser<'a>
impl<'a> Sync for ExpressionParser<'a>
impl<'a> Unpin for ExpressionParser<'a>
impl<'a> UnwindSafe for ExpressionParser<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,