Add gendecl rule in grammar.