From 5600dd2fd373879bede0949544cde71c232eb4f4 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 28 Aug 2023 14:36:27 +0200 Subject: //: elaborate on what a proper parser would do --- src/naive_parser.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/naive_parser.rs b/src/naive_parser.rs index ecf170a..2626209 100644 --- a/src/naive_parser.rs +++ b/src/naive_parser.rs @@ -53,6 +53,8 @@ impl, O: Offset, E: Emitter> Iterator for NaiveParser type Item = Result; fn next(&mut self) -> Option { + // A proper parser would follow the steps described under section '13.2.6 Tree construction' + // of the spec. Since this parser is naive, we directly return the token instead. self.tokenizer.next() } } -- cgit v1.2.3