示例#1
0
 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()
示例#2
0
文件: RuleSet.py 项目: goc9000/baon
 def from_source(rules_text):
     return RuleSet(parse_rules(rules_text))