add dump method for grammar parser