Implement parsing and compilation of maps