WKT lexer

As I found myself some spare time and enthusiasm, I tried to write a lexer to replace the regex-based parsing of WKT strings. Here is the result. Please let me know whether this is anywhere near the concepts that have been conceived.