Put ranges into an ast object
Allow flattening of syntax trees