Opened 16 years ago

Closed 16 years ago

#112 closed defect (fixed)

Parse error when declaring and assigning on the same line

Reported by: zirkel Owned by: ywei
Priority: major Milestone:
Component: front Version:
Keywords: parser, exception, example, front, simpleArray Cc:

Description

In the example simpleArrayInputRead.mmp, there is a parser exception from the line:

	int b = a[1][0];

If separated into two separate statements, this works, but it should work as one line, too.

Change History (2)

comment:1 by ywei, 16 years ago

Owner: set to ywei
Status: newaccepted

comment:2 by ywei, 16 years ago

Resolution: fixed
Status: acceptedclosed

Bug fixed. I changed the grammar so it allows a function to contain only variables and no statements.

Note: See TracTickets for help on using tickets.