Add script to build grammar