Finish ggt task

This commit is contained in:
Jan-Niclas Loosen
2025-10-18 17:13:08 +02:00
parent ee97bf1518
commit 7f3cd757ae
4 changed files with 96 additions and 211 deletions

View File

@@ -35,10 +35,6 @@ class MaMa:
steps += 1
return journal
# Returns the full program
def structure(self) -> Dict[int, Dict[str, Any]]:
return {i: {"micro": micro, "macros": []} for i, micro in sorted(self.prog.items())}
# Decodes string MaMa instructions to function callables
@staticmethod
def decode(micro: str) -> Tuple[str, Optional[List[Any]]]: