From 3f0784207669fb24e860f728e533a00460b4fa24 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 1 Oct 2023 11:12:55 +0100 Subject: [PATCH] manually revert damaged caused by jacob to pseudocode parser the purpose of the parser database is to preserve precisely and exactly the data that is read in, such that it is possible to re-write it precisely and exactly jacob had destroyed that extremely important requirement by making unauthorized modifications to this fundamental low-level code. jacobs task is now to review the reversions and re-implement the otherwise extremely valuable enhancements, but this time in a way that listens to the project leader and administrators --- src/openpower/decoder/pseudo/pagereader.py | 29 +++------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/src/openpower/decoder/pseudo/pagereader.py b/src/openpower/decoder/pseudo/pagereader.py index 9bb234de..80a1a4c9 100644 --- a/src/openpower/decoder/pseudo/pagereader.py +++ b/src/openpower/decoder/pseudo/pagereader.py @@ -221,7 +221,6 @@ class ISA: # all sections are mandatory so no need for a full LALR parser. l = lines.pop(0).rstrip() # get first line - prefix_lines = 0 while lines: if self.verbose: print(l) @@ -233,13 +232,11 @@ class ISA: if l.strip().startswith('", l) if re_match: for i in re_match[1].split(' '): @@ -327,8 +310,9 @@ class ISA: li.append("") continue if l.strip().startswith('