Adds function to parse a text-format grid