Implement .grid parser