Add rules (a docstring-like list of rules) to grammar. Note that the rules must not be those that set arg_count in the custom dictionary.
(self, rules_str, customize)
| 147 | return |
| 148 | |
| 149 | def add_unique_doc_rules(self, rules_str, customize): |
| 150 | """Add rules (a docstring-like list of rules) to grammar. |
| 151 | Note that the rules must not be those that set arg_count in the |
| 152 | custom dictionary. |
| 153 | """ |
| 154 | rules = [r.strip() for r in rules_str.split("\n")] |
| 155 | self.add_unique_rules(rules, customize) |
| 156 | return |
| 157 | |
| 158 | def cleanup(self): |
| 159 | """ |
no test coverage detected