[Libre-soc-bugs] [Bug 980] Implement C-based Power ISA pseudocode compiler

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Jan 13 13:04:55 GMT 2024


https://bugs.libre-soc.org/show_bug.cgi?id=980

--- Comment #88 from Dmitry Selyutin <ghostmansd at gmail.com> ---
A minor remark on for: I had to basically create different nodes for this to
work, since ForExpr obtained from parser looks like this:

class ForExpr(Dataclass):
    subject: Node
    start: Node
    end: Node
    body: Scope

We, however, create two AssignExpr and one BinaryExpr instead of this. An
alternative would be to output C-like ForExpr from the parser, but this would
be creepy: I'd like to keep the produced AST as close to the origins as
possible.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list