make the grammar file to construct an AST