Opened 19 years ago
Last modified 19 years ago
#25 closed defect (fixed)
Problem parsing unary minus.
Reported by: | petar | Owned by: | petar |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | petar, adrpo |
Description
Change History (2)
comment:1 Changed 19 years ago by petar
comment:2 Changed 19 years ago by petar
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)