Sorry guys, I goofed. I should have changed declaration-specifiers not declaration. It should look like this instead. declaration-specifiers: storage-specifier type-specifier-list type-specifier-list where type-specifier-list is optional in the first line.