Build AST.