trying to go the visitors way for semantic parsing