Rule parser

Let's see if tests pass.
I did for the new parser code, but I don't want to go in the SDF part. That part should just be removed.