Building out the rule tree parser