<feed xmlns='http://www.w3.org/2005/Atom'>
<title>html5tokenizer/examples, branch v0.5.2</title>
<subtitle>Fork of html5gum with code span support</subtitle>
<id>http://git.push-f.com/html5tokenizer/atom/examples?h=v0.5.2</id>
<link rel='self' href='http://git.push-f.com/html5tokenizer/atom/examples?h=v0.5.2'/>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/'/>
<updated>2023-09-28T09:00:01Z</updated>
<entry>
<title>docs: add errors example</title>
<updated>2023-09-28T09:00:01Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-28T08:14:21Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=70b92eda9a38c2f0e093c0f74cafb6398f97b58e'/>
<id>urn:sha1:70b92eda9a38c2f0e093c0f74cafb6398f97b58e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>docs: improve tokenize example output format</title>
<updated>2023-09-28T08:36:08Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-28T08:32:45Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=ade1034c46f3c5e50bdf07fd1556b7957011fe98'/>
<id>urn:sha1:ade1034c46f3c5e50bdf07fd1556b7957011fe98</id>
<content type='text'>
</content>
</entry>
<entry>
<title>break!: move offsets out of Token</title>
<updated>2023-09-28T08:36:08Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-10T17:37:34Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=852d5c6f2e65a5ab466662ae1c649a0ed25c70a9'/>
<id>urn:sha1:852d5c6f2e65a5ab466662ae1c649a0ed25c70a9</id>
<content type='text'>
Previously the Token enum contained the offsets using the O generic
type parameter, which could be a usize if you're tracking offsets or
a zero-sized type if you didn't care about offsets. This commit moves
all the byte offset and syntax information to a new Trace enum,
which has several advantages:

* Traces can now easily be stored separately, while the tokens are
  fed to the tree builder. (The tree builder only has to keep track
  of which tree nodes originate from which tokens.)

* No needless generics for functions that take a token but don't
  care about offsets (a tree construction implementation is bound
  to have many of such functions).

* The FromIterator&lt;(String, String)&gt; impl for AttributeMap no longer
  has to specify arbitrary values for the spans and the value_syntax).

* The PartialEq implementation of Token is now much more useful
  (since it no longer includes all the offsets).

* The Debug formatting of Token is now more readable
  (since it no longer includes all the offsets).

* Function pointers to functions accepting tokens are possible.
  (Since function pointer types may not have generic parameters.)
</content>
</entry>
<entry>
<title>chore: add BasicEmitter stub</title>
<updated>2023-09-28T08:36:08Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-12T07:03:56Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=14bc6f2cceed0fa578d6a1195266885bf57a5d4c'/>
<id>urn:sha1:14bc6f2cceed0fa578d6a1195266885bf57a5d4c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>break!: rename DefaultEmitter to TracingEmitter</title>
<updated>2023-09-28T08:36:08Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-12T06:19:00Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=ad6ac5f0a825775c231e76cdc9016e61e54f4141'/>
<id>urn:sha1:ad6ac5f0a825775c231e76cdc9016e61e54f4141</id>
<content type='text'>
</content>
</entry>
<entry>
<title>break!: remove Token::Error</title>
<updated>2023-09-28T08:36:01Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-08-29T11:09:44Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=826907487e2b593f1c54e98b59fe2f6eb8cb6937'/>
<id>urn:sha1:826907487e2b593f1c54e98b59fe2f6eb8cb6937</id>
<content type='text'>
An error isn't a token (in general and also according to the spec).
You shouldn't have to filter out errors when you're just interested
in tokens but most importantly having errors in the Token enum is
annoying when implementing tree construction (since the spec conditions
exhaustively cover all Token variants except Token::Error).
</content>
</entry>
<entry>
<title>docs: add spans example</title>
<updated>2023-09-03T21:02:01Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-09-03T21:02:01Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=0c590e90564870fa8600460c866c7395b7d865cd'/>
<id>urn:sha1:0c590e90564870fa8600460c866c7395b7d865cd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: introduce NaiveParser</title>
<updated>2023-08-19T11:53:58Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-08-12T10:58:08Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=0d9cd9ed44b676ccd4991cea27dc620b94ebe7e7'/>
<id>urn:sha1:0d9cd9ed44b676ccd4991cea27dc620b94ebe7e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor!: make Emitter generic over offset instead of reader</title>
<updated>2023-08-19T11:41:55Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-08-17T07:40:47Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=c15895d44d17984386d3684e2aa85aca386ba3bf'/>
<id>urn:sha1:c15895d44d17984386d3684e2aa85aca386ba3bf</id>
<content type='text'>
Emitters should not have access to the reader at all.  Also the
current position of the reader, at the time an Emitted method is
called, very much depends on machine implementation details such
as if `Tokenizer::unread_char` is used. Having the Emitter
methods take offsets lets the machine take care of providing
the right offsets, as evidenced by the next commit.
</content>
</entry>
<entry>
<title>refactor: add default for S type param of DefaultEmitter</title>
<updated>2023-08-19T09:40:58Z</updated>
<author>
<name>Martin Fischer</name>
<email>martin@push-f.com</email>
</author>
<published>2023-08-17T06:57:15Z</published>
<link rel='alternate' type='text/html' href='http://git.push-f.com/html5tokenizer/commit/?id=c899f2f36df0371af776f21231ccdf0d30a2aaab'/>
<id>urn:sha1:c899f2f36df0371af776f21231ccdf0d30a2aaab</id>
<content type='text'>
</content>
</entry>
</feed>
