Parsing and compilation tools for Surveyor surveys