Cleaning up all the code that handled the C-sglr (sdf) parser.

@dwightguth please review.