(cls, data: str)
| 71 | |
| 72 | @classmethod |
| 73 | def from_txt(cls, data: str) -> Clause: |
| 74 | if data == ' =': |
| 75 | return Clause([], []) |
| 76 | points, constructions = data.split(' = ') |
| 77 | return Clause( |
| 78 | points.split(' '), |
| 79 | [Construction.from_txt(c) for c in constructions.split(', ')], |
| 80 | ) |
| 81 | |
| 82 | def __init__(self, points: list[str], constructions: list[Construction]): |
| 83 | self.points = [] |