Skip to content
Snippets Groups Projects

Moved printing functionality out from Processor class + minor refactor of...

Merged Johannes Kung requested to merge smaller_files into main
5 unresolved threads
7 files
+ 426
393
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 3
2
@@ -3,6 +3,7 @@ from __future__ import annotations
@@ -3,6 +3,7 @@ from __future__ import annotations
import ast
import ast
from os.path import exists, isdir
from os.path import exists, isdir
 
from simudator.cli.printing import pretty_print, pretty_print_verbose
from simudator.core.processor import Processor
from simudator.core.processor import Processor
HELP_TEXT = """Here is a list of possible commands:
HELP_TEXT = """Here is a list of possible commands:
@@ -195,12 +196,12 @@ class CLI:
@@ -195,12 +196,12 @@ class CLI:
case ["pp"] | ["pretty print"]:
case ["pp"] | ["pretty print"]:
# pretty print the modules of the processor
# pretty print the modules of the processor
self._processor.pretty_print()
pretty_print(self._processor)
case ["ppv"] | ["pretty print verbose"]:
case ["ppv"] | ["pretty print verbose"]:
# pretty print the modules of the processor
# pretty print the modules of the processor
# with all available information
# with all available information
self._processor.pretty_print_verbose()
pretty_print_verbose(self._processor)
# Breakpoints -------------------------------------------------
# Breakpoints -------------------------------------------------
case ["p", "br"] | ["print", "breaks"]:
case ["p", "br"] | ["print", "breaks"]:
Loading