Opened 16 years ago

Closed 16 years ago

#260 closed defect (fixed)

parser test failures

Reported by: Stephen Siegel Owned by: zirkel
Priority: major Milestone: 1.1
Component: front Version: 1.1
Keywords: parser grammar test Cc:

Description

Two parser tests are failing. See JUnit output.

Change History (2)

comment:1 by zirkel, 16 years ago

Owner: set to zirkel
Status: newaccepted

comment:2 by zirkel, 16 years ago

Resolution: fixed
Status: acceptedclosed

We had changed declaration_body in the grammar from its original form:

declaration_body
	:	type_specifier (declarator (ASSIGN initializer)?)? -> ^(DECL_BODY type_specifier (declarator initializer?)?)
	;

As written this allows statements like

int;

which are incorrect. However, making the declarator optional is necessary with the current grammar in order to parse declarations of structs correctly. I've changed it back for the time being.

Note: See TracTickets for help on using tickets.