Generating AST.