Parse WKT strings using a simple lexer