This reminds me how PHP ended up with weird characters for various things (like namespace separators) because it was just easier to parse.
Then being walled in by backwards compatibility
Another absolute horror parser was the wikipedia wikitext parser. An ambiguous hand written mess of epic disgust.