summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index a2349ee..bbb5d6f 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -25,6 +25,13 @@ impl CrimError {
25 } 25 }
26 } 26 }
27 27
28 pub fn broken( position: Position, what: &str ) -> Self {
29 Self {
30 position,
31 what: format!("Broken parser? {}", what),
32 }
33 }
34
28 pub fn eos( context: &str ) -> Self { 35 pub fn eos( context: &str ) -> Self {
29 Self { 36 Self {
30 position: Position::none(), 37 position: Position::none(),