diff options
Diffstat (limited to 'src/emitter.rs')
-rw-r--r-- | src/emitter.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/emitter.rs b/src/emitter.rs index 311c73c..923da1c 100644 --- a/src/emitter.rs +++ b/src/emitter.rs @@ -24,21 +24,12 @@ use crate::Error; #[allow(unused_variables)] // workaround for https://github.com/rust-lang/rust/issues/91074 pub trait Emitter<O> { - /// The token type emitted by this emitter. This controls what type of values the [`Tokenizer`](crate::Tokenizer) - /// yields when used as an iterator. - type Token; - - /// The state machine has reached the end of the file. It will soon call `pop_token` for the - /// last time. + /// The state machine has reached the end of the file. fn emit_eof(&mut self); /// A (probably recoverable) parsing error has occurred. fn emit_error(&mut self, error: Error, span: Range<O>); - /// After every state change, the tokenizer calls this method to retrieve a new token that can - /// be returned via the tokenizer's iterator interface. - fn pop_token(&mut self) -> Option<Self::Token>; - /// Emit a bunch of plain characters as character tokens. fn emit_string(&mut self, c: &str); |