feat: сделал первую версию CLI

Проект в целом получил свой MVP
This commit is contained in:
ElectronixTM
2025-03-16 03:52:07 +03:00
parent 8734e1eba9
commit 666657926b
3 changed files with 69 additions and 8 deletions

View File

@ -61,10 +61,9 @@ class Rulebook:
log += string + '\n'
log += "FINAL_RULE".center(CENTER_WIDTH, "_") + '\n'
return string, log
# raise ValueError("The amount of transformations exceeded "
# f"{self.MAX_DEPTH}. You can change maximum "
# "amount by setting class variable MAX_DEPTH,"
# " but may be something wrong with your input")
log += "OVERFLOW".center(CENTER_WIDTH, "_") + '\n'
return None, log
def _log_rule(self, rule) -> str:
arrow = "->|" if rule.is_blocking else "->"