parser: extends grammar to support annotations