WARNING : This is just an implementation sketch and not very well tested.
Export SemRep entities to AST nodes.