eval
Log in

Annotate struct

100 points

The starter code below does not compile. Fix errors and get it to compile.

Required signature

pub struct Parser<'a> {     pub input: &'a str,     pub position: usize, }  impl<'a> Parser<'a> {     pub fn new(input: &'a str) -> Parser<'a>;     pub fn peek(&self) -> Option<&str>; }

Visible tests

Your solution

Log in to submit a solution.