Opened 20 years ago
Last modified 19 years ago
#25 closed defect (fixed)
Problem parsing unary minus.
Reported by: | Peter Aronsson | Owned by: | Peter Aronsson |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Peter Aronsson, Adrian Pop |
Description
Change History (2)
comment:1 by , 20 years ago
comment:2 by , 19 years ago
PA: According to grammar a unary minus should be wrapped in parenthesis when
using multiplication or division, e.g. 1/(-5).
Note:
See TracTickets
for help on using tickets.
Give in Mosh: model A Real x = 1/-2; end A;
Result: [1:20]: error: unexpected token: -
Moved here from MathCore's bugzilla (bug no. 271)