Fixed compilation error due to issues in GreedyParser implementation