summaryrefslogtreecommitdiff
path: root/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 81eda42..e13363e 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -5,6 +5,12 @@ use line_col::LineColLookup;
use log::{debug, trace};
use std::collections::HashMap;
+#[derive(Debug, thiserror::Error)]
+pub enum ParserError {
+ #[error("failed to parse wikitext, line {0}, column {1}: {2:?}")]
+ WikitextSyntax(usize, usize, Vec<crate::token::TokenKind>),
+}
+
#[derive(Debug)]
pub struct WikitextParser {
tokens: Vec<TokenKind>,