Opened 17 years ago

Closed 17 years ago

#85 closed defect (fixed)

Integers cannot be set to negative literal

Reported by: zirkel Owned by: ywei
Priority: minor Milestone:
Component: front Version:
Keywords: parser, negative, unknown operator Cc:

Description

Trying to declare an integer as a negative literal value, such as:

temp = -1;

will give the error

Unknow operator type: UNARY_EXPR

Change History (1)

comment:1 by zirkel, 17 years ago

Resolution: fixed
Status: newclosed

Fixed this by a minor change to the TreeParser

Note: See TracTickets for help on using tickets.