adding rule parser package and a test.