add methods for parsing priority in Parser

-add methods for parsing priority in Parser