diff options
| author | Martin Fischer <martin@push-f.com> | 2023-08-28 14:36:27 +0200 | 
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 | 
| commit | 5600dd2fd373879bede0949544cde71c232eb4f4 (patch) | |
| tree | edcf7d4538f4f27a6d23e022b6c11673691e29f3 | |
| parent | 896ad0d57d003d59585106c33f30fdfd29ebdb17 (diff) | |
//: elaborate on what a proper parser would do
| -rw-r--r-- | src/naive_parser.rs | 2 | 
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()      }  } | 
