pub struct Parser { /* private fields */ }
Implementations
sourceimpl Parser
impl Parser
pub fn new(tokens: Tokens) -> Parser
pub fn parse_expression(
&mut self,
assign_allow: bool
) -> Result<Expression, CalError>
pub fn parse_let(&mut self) -> Result<Statement, CalError>
pub fn parse_if(&mut self) -> Result<Statement, CalError>
pub fn parse_while(&mut self) -> Result<Statement, CalError>
pub fn parse_statement(&mut self) -> Result<Option<Statement>, CalError>
pub fn parse_statements(&mut self) -> Result<Vec<Statement>, CalError>
pub fn parse_parameters(&mut self) -> Result<Vec<Variable>, CalError>
pub fn parse_function(&mut self) -> Result<Function, CalError>
pub fn parse_module(&mut self) -> Result<Module, CalError>
Auto Trait Implementations
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more