all lex errors have a position now
parent
1d504ff36d
commit
965cb45437
@ -1,7 +1,13 @@
|
|||||||
pub struct History {}
|
pub struct History {
|
||||||
|
events: Vec<String>,
|
||||||
|
}
|
||||||
|
|
||||||
impl History {
|
impl History {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {}
|
Self { events: Vec::new() }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn add<S: Into<String>>(&mut self, event: S) {
|
||||||
|
self.events.push(event.into());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue