flycatcher_parser/error.rs
1//! Exposes error types for the parser.
2
3/// A list of possible errors that may occur during parsing.
4#[derive(PartialEq)]
5pub enum ErrorKind {
6
7 /// A general syntax error, if this error is thrown, it is guaranteed that the parser will
8 /// have emitted a diagnostic message.
9 SyntaxError,
10
11 /// Returned when there is no tokens left in the lexer that the parser uses. The parser
12 /// will not throw a diagnostic message if this error is found.
13 EndOfFile,
14
15}