Make parser depend just on ast.