WIP, not quite sure how to structure ast input to cg