The html5ever parser source [1] is remarkably easy to read, since it uses the Rust macro system to represent the state transitions declaratively. It also uses pattern matching to nice effect.<p>[1]: <a href="https://github.com/servo/html5ever/blob/master/html5ever/src/tokenizer/mod.rs" rel="nofollow">https://github.com/servo/html5ever/blob/master/html5ever/src...</a>
This one and <a href="https://news.ycombinator.com/item?id=14588333" rel="nofollow">https://news.ycombinator.com/item?id=14588333</a> should fight.
This is exciting. It's using Cython [1]<p>To the author:<p>What do you feel about binding python to rust? Did you use any tutorials?<p>[1] <a href="https://github.com/tbodt/htmlpyever/blob/880da57/setup.py#L5" rel="nofollow">https://github.com/tbodt/htmlpyever/blob/880da57/setup.py#L5</a>