add ast visitor frame. first support dump ast to xml.