Hide time when reducing by steps
parent
da997b80c7
commit
09a389857a
|
@ -196,24 +196,31 @@ class Runner:
|
||||||
]
|
]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
if not self.step_reduction:
|
||||||
|
out_text += [
|
||||||
|
("class:ok", f"Runtime: "),
|
||||||
|
("class:text", f"{time.time() - start_time:.03f} seconds"),
|
||||||
|
("class:text", "\n")
|
||||||
|
]
|
||||||
|
|
||||||
out_text += [
|
out_text += [
|
||||||
("class:ok", f"Runtime: "),
|
("class:ok", f"Exit reason: "),
|
||||||
("class:text", f"{time.time() - start_time:.03f} seconds"),
|
|
||||||
|
|
||||||
("class:ok", f"\nExit reason: "),
|
|
||||||
stop_reason.value,
|
stop_reason.value,
|
||||||
|
("class:text", "\n"),
|
||||||
|
|
||||||
("class:ok", f"\nMacro expansions: "),
|
("class:ok", f"Macro expansions: "),
|
||||||
("class:text", f"{macro_expansions:,}"),
|
("class:text", f"{macro_expansions:,}"),
|
||||||
|
("class:text", "\n"),
|
||||||
|
|
||||||
("class:ok", f"\nReductions: "),
|
("class:ok", f"Reductions: "),
|
||||||
("class:text", f"{k:,}\t"),
|
("class:text", f"{k:,}\t"),
|
||||||
("class:muted", f"(Limit: {self.reduction_limit:,})")
|
("class:muted", f"(Limit: {self.reduction_limit:,})")
|
||||||
]
|
]
|
||||||
|
|
||||||
if self.full_expansion:
|
if self.full_expansion:
|
||||||
out_text += [
|
out_text += [
|
||||||
("class:ok", "\nAll macros have been expanded")
|
("class:text", "\n"),
|
||||||
|
("class:ok", "All macros have been expanded")
|
||||||
]
|
]
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|
|
@ -15,7 +15,7 @@ lamb = "lamb_engine:main"
|
||||||
[project]
|
[project]
|
||||||
name = "lamb_engine"
|
name = "lamb_engine"
|
||||||
description = "A lambda calculus engine"
|
description = "A lambda calculus engine"
|
||||||
version = "1.1.7"
|
version = "1.1.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"prompt-toolkit==3.0.31",
|
"prompt-toolkit==3.0.31",
|
||||||
"pyparsing==3.0.9"
|
"pyparsing==3.0.9"
|
||||||
|
|
Reference in New Issue