Implement grammar part for maps