summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-28 14:36:27 +0200
committerMartin Fischer <martin@push-f.com>2023-09-03 23:00:05 +0200
commit5600dd2fd373879bede0949544cde71c232eb4f4 (patch)
treeedcf7d4538f4f27a6d23e022b6c11673691e29f3 /src
parent896ad0d57d003d59585106c33f30fdfd29ebdb17 (diff)
//: elaborate on what a proper parser would do
Diffstat (limited to 'src')
-rw-r--r--src/naive_parser.rs2
1 files changed, 2 insertions, 0 deletions
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<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Iterator for NaiveParser
type Item = Result<E::Token, R::Error>;
fn next(&mut self) -> Option<Self::Item> {
+ // 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()
}
}