Parse programs into a list data structure for easier processing