[Libre-soc-bugs] [Bug 1177] revert unauthorized change to pseudocode language
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Wed Nov 1 07:20:13 GMT 2023
https://bugs.libre-soc.org/show_bug.cgi?id=1177
--- Comment #7 from Jacob Lifshay <programmerjake at gmail.com> ---
I have a WIP version (doesn't yet work):
I'm implementing it as a post-parsing transform over the Python AST, since I
tried doing it while parsing and that quickly became very confusing due to all
the parse nodes' types changing, so I decided that was a bad idea, and the AST
transformer works much better. I have it generate an ...__ok variable for every
name mentioned in a statement, since that's easier than filtering out just
assignments (and SetFX), all the extra variables just get ignored.
So far, it seems to generate correct .py files, I just haven't finished
implementing the corresponding ISACaller changes.
https://git.libre-soc.org/?p=openpower-isa.git;a=shortlog;h=1e42b9e14a5bb31552905bca3f46427beeedb55d
commit 1e42b9e14a5bb31552905bca3f46427beeedb55d
Author: Jacob Lifshay <programmerjake at gmail.com>
Date: Wed Nov 1 00:11:38 2023 -0700
WIP adding ...__ok for all outputs
commit ef94f1b73ba3194b5f893229ff10d054b2b97393
Author: Jacob Lifshay <programmerjake at gmail.com>
Date: Tue Oct 31 22:50:40 2023 -0700
misc AST correctness fixes
commit e5838b62aa181544d8013f444fa78abf92de3ecd
Author: Jacob Lifshay <programmerjake at gmail.com>
Date: Tue Oct 31 22:44:22 2023 -0700
fix `fallthrough` handling
previously it tried to call self.fallthrough() in mtspr's pseudo-code
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list