def parse_result(self, start_rule, rules_text): try: return parse_rules(rules_text, start_rule).test_repr() except RuleParseError as e: return e.test_repr()
def from_source(rules_text): return RuleSet(parse_rules(rules_text))