From 2b144dd3ce2f073c05f64e9c96da312a7bc8bab0 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('