Show HN: Python bindings to the Servo HTML5 parser, html5ever
github.com
github.com
[1]: https://github.com/servo/html5ever/blob/master/html5ever/src...
https://kmcallister.github.io/talks/rust/2014-rust-macros/sl...
Here is the video (starts around 20min):
https://html.spec.whatwg.org/multipage/parsing.html#data-sta...
Where spec:
U+0000 NULL ->
This is an unexpected-null-character parse error. Emit the current input character as a character token.
translates into: FromSet('\0') => go!(self: error; emit '\0'),
If you ignore the FromSet which is used for small set of characters, and `go!` which is a macro, you get something akin to: '\0' => emit_error; emit '\0'To the author:
What do you feel about binding python to rust? Did you use any tutorials?
[1] https://github.com/tbodt/htmlpyever/blob/880da57/setup.py#L5