fixed bug with grammar where only decreseasing precedence was allowed