daphne-project/daphne

Unary not operator in DaphneDSL

Ouverte

#670 ouverte le 27 févr. 2024

 (0 commentaire) (0 réaction) (0 personne assignée)C++ (84 forks)auto 404
good first issue

Métriques du dépôt

Stars
 (80 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur