[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MPS codegen
From: |
Helmut Eller |
Subject: |
Re: MPS codegen |
Date: |
Fri, 14 Jun 2024 09:45:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Fri, Jun 14 2024, Gerd Möllmann wrote:
>> At the time I tried to hack something to generate the code you wanted
>> (well my interpretation as I never got the minimal example I asked for)
>> but when Eli suggested treesitter I gave-up as I thought was a good (and
>> better) suggestion.
>
> The Lisp code Helmut posted could serve as an example, I think. The task
> would be to replace the manual object layout descriptions with ones
> generated from C code. Or something like that.
A nice approach would be to use C23 attribute syntax to add annotations
in the existing C structs. Then extract the layout descriptions from
those annotations. But how the actual annotations should look like is
not clear. E.g. how to express the "switch fields" that I used in the
layout description. There are lots of other details like this that
don't have obvious solutions.
> BTW, @Helmut: do you plan to work on this idea? I'm asking because I'm
> in sort of a buf-fixing-only mode right now, i.e. I'm trying to make it
> work well enough that I can use it and get an impression how it does
> while doing something completely different from MPS. (Alas, I had to fix
> one or there things to make that possible.) So, I'll probably not
> tackle your dumper idea in the near future...
I planned to give it a try, but not until somebody™ updates the branch
on savannah. Otherwise patches to pdumper.c don't apply cleanly.
- Re: MPS codegen, (continued)
- Re: MPS codegen, Gerd Möllmann, 2024/06/13
- Re: MPS codegen, Helmut Eller, 2024/06/13
- Re: MPS codegen, Gerd Möllmann, 2024/06/13
- Re: MPS codegen, Eli Zaretskii, 2024/06/14
- Re: MPS codegen, Gerd Möllmann, 2024/06/14
- Re: MPS codegen, Gerd Möllmann, 2024/06/14
- Re: MPS codegen, Eli Zaretskii, 2024/06/14
- Re: MPS codegen, Eli Zaretskii, 2024/06/14
- Re: MPS codegen, Andrea Corallo, 2024/06/13
- Re: MPS codegen, Gerd Möllmann, 2024/06/14
- Re: MPS codegen,
Helmut Eller <=
- Re: MPS codegen, Gerd Möllmann, 2024/06/14
- Re: MPS codegen, Gerd Möllmann, 2024/06/14
- Re: MPS codegen, Helmut Eller, 2024/06/14
- Re: MPS codegen, Eli Zaretskii, 2024/06/14
- Re: MPS codegen, Gerd Möllmann, 2024/06/14
- Re: MPS codegen, Eli Zaretskii, 2024/06/14
- Re: MPS codegen, Gerd Möllmann, 2024/06/14
- Re: MPS codegen, Eli Zaretskii, 2024/06/14
- Re: MPS codegen, Gerd Möllmann, 2024/06/14
- Re: MPS codegen, Eli Zaretskii, 2024/06/14