ianprime0509 / zig-xml

XML parser for Zig
http://ianjohnson.dev/zig-xml/
BSD Zero Clause License
14 stars 3 forks source link

End-of-line handling #2

Closed ianprime0509 closed 1 year ago

ianprime0509 commented 1 year ago

https://www.w3.org/TR/2008/REC-xml-20081126/#sec-line-ends

This normalization should be handled at some level of abstraction. It could probably be handled at the Scanner level if new tokens are introduced to represent ends of lines and the state machine is updated to look for end-of-line sequences in content input.