Implementing unary parsing