move the AST into its own package

yay! learned how to do this!