diff options
Diffstat (limited to 'src/naive_parser.rs')
-rw-r--r-- | src/naive_parser.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/naive_parser.rs b/src/naive_parser.rs index c5e9568..ac82d46 100644 --- a/src/naive_parser.rs +++ b/src/naive_parser.rs @@ -40,16 +40,6 @@ impl<R: Reader + Position<O>, O: Offset> NaiveParser<R, O, DefaultEmitter<O>> { } } -impl<R: Reader + Position<usize>> NaiveParser<R, usize, DefaultEmitter<usize>> { - /// Constructs a new naive parser with source code offsets and spans. - // TODO: add example for NaiveParser::new_with_spans - pub fn new_with_spans<'a>(reader: impl IntoReader<'a, Reader = R>) -> Self { - let mut tokenizer = Tokenizer::new(reader, DefaultEmitter::default()); - tokenizer.enable_naive_state_switching(); - NaiveParser { tokenizer } - } -} - impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> NaiveParser<R, O, E> { /// Constructs a new naive parser with a custom emitter. // TODO: add example for NaiveParser::new_with_emitter |