From 52100dd3211f1f3b4d4d8f2197b6ec2cee026111 Mon Sep 17 00:00:00 2001 From: pompolic <pompolic@special-circumstanc.es> Date: Thu, 20 Oct 2022 13:54:39 +0200 Subject: [PATCH] Printing without tokeninfo (commented out) --- gdb-port/top-level-parse.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb-port/top-level-parse.py b/gdb-port/top-level-parse.py index 7012a62..52b3a4a 100644 --- a/gdb-port/top-level-parse.py +++ b/gdb-port/top-level-parse.py @@ -497,6 +497,8 @@ class TopLevelParse: hpr_strings.append(" ".join(["invalid", str(tokenmap_entry)])) info_dict = dict(enumerate(info_strings)) charbufrows_token_debug = [ "".join(row) + "\ntokeninfo: " + info_dict.get(index, "no token here") for index, row in enumerate(charbuf_dynamic)] + #charbufrows = ["".join(row) for row in charbuf_dynamic] + #charbuf_final = "\n".join(charbufrows) charbuf_final = "\n".join(charbufrows_token_debug) print(charbuf_final) -- GitLab