Opened 16 years ago

Closed 16 years ago

#134 closed defect (fixed)

arithmetic parsing error

Reported by: Stephen Siegel Owned by: ywei
Priority: major Milestone:
Component: front Version: 1.0
Keywords: Cc:

Description

An expression of the form a-b+c gets parsed as a-(b+c):

int m = ((pid+1)*nx)/NP - (pid*nx)/NP + 2
gets parsed as

m : int = (((pid+1)*nx)/NP)-(((pid*nx)/NP)+2);

Please fix and also add simple test for this situation in examples/arithmetic

Change History (2)

comment:1 by ywei, 16 years ago

Status: newaccepted

comment:2 by ywei, 16 years ago

Resolution: fixed
Status: acceptedclosed

Fixed. The binary operators now are left associative as they should be.

Note: See TracTickets for help on using tickets.