daphne-project/daphne

Unary not operator in DaphneDSL

オープン

#670 opened on 2024/02/27

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (84 件のフォーク)auto 404
good first issue

Repository metrics

Stars
 (80 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド