add elif to grammar