Finished porting compiler, but not very well tested.