daphne-project/daphne

Unary not operator in DaphneDSL

开放

#670 创建于 2024年2月27日

 (0 条评论) (0 个反应) (0 位负责人)C++ (84 个派生)auto 404
good first issue

仓库指标

星标
 (80 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

DaphneDSL does not support the typical unary not operator yet; one cannot say, e.g., if(!found) ... or while(!(converged || aborted)) .... There is a workaround: if(found == false), but we should not require that, since it's quite inconvenient.

Solving this issue requires:

  • changes to the DaphneDSL parser
  • a new elementwise unary operator for not
  • adding some script-level test cases

贡献者指南