diff --git a/src/common.rs b/src/common.rs index d8387df..62250f7 100644 --- a/src/common.rs +++ b/src/common.rs @@ -677,3 +677,9 @@ impl Pos { self.column += num; } } + +impl Display for Pos { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + write!(f, "line:{} col:{}", self.line, self.column) + } +} \ No newline at end of file