feat: wire up the parser in the main function
This commit is contained in:
@@ -48,7 +48,7 @@ impl<'src> Parser<'src> {
|
||||
}
|
||||
|
||||
/// Finish the parsing process returning the errors if any have occured.
|
||||
pub fn finish(self) -> Option<Vec<ParseError>> {
|
||||
pub fn errors(self) -> Option<Vec<ParseError>> {
|
||||
(!self.errors.is_empty()).then_some(self.errors)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user