examples: d: fix the handling of unary +
commitf3bcb3de0e4bf9eb3e771857917e19aa271b4c30
authorAdela Vais <adela.vais99@gmail.com>
Tue, 1 Sep 2020 18:54:34 +0000 (1 21:54 +0300)
committerAkim Demaille <akim.demaille@gmail.com>
Wed, 2 Sep 2020 05:38:42 +0000 (2 07:38 +0200)
tree680be8113c4b03544c377e3eb9ff332b3caa21d1
parent325ec7d32414d3b732d22387bb54da6918ec2ffc
examples: d: fix the handling of unary +

It was interpreting "+exp" as "-exp".

* examples/d/calc.y: Fix.
* examples/d/calc.test: Check it.
examples/d/calc.test
examples/d/calc.y