We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bca624 commit 9af9505Copy full SHA for 9af9505
decompyle3/main.py
@@ -67,7 +67,7 @@ def decompile(
67
showasm: Optional[str] = None,
68
showast={},
69
timestamp=None,
70
- showgrammar=False,
+ showgrammar={},
71
source_encoding=None,
72
code_objects={},
73
source_size=None,
@@ -124,7 +124,7 @@ def write(s):
124
write("# Size of source mod 2**32: %d bytes" % source_size)
125
126
grammar = dict(PARSER_DEFAULT_DEBUG)
127
- if showgrammar:
+ if showgrammar.get("reduce", False):
128
grammar["reduce"] = True
129
130
debug_opts = {"asm": showasm, "tree": showast, "grammar": grammar}
0 commit comments