Add a drop_node method to Parser class