def ana_Unary_Name_constructor(self, ctx, e):
id = e.operand.id
if id != "Inf":
raise _errors.TyError("Invalid ieee literal.", e)
if not isinstance(e.op, (ast.UAdd, ast.USub)):
raise _errors.TyError("Invalid unary operator on ieee literal.", e)
评论列表
文章目录