Hey, I just invented macros for Hare
A nice side effect of this: I've randomly found some bugs in hare::unparse and hare::parse
@yyp I looked at the example in readme and the macro definitions look a bit verbose. Do you think it'd be possible to make them look sth like
@ annotate("@pi"){
// gen_pi body
}
Without the need to register them explicitly?
@wolf480pl This is possible, but it would require to run some generator that handles @annotate on generators themselves, which I'd like to avoid.
@yyp I was hoping you'd run generators written in annotate through generators written in annotate...
@yyp though I guess thay'd require committing the generated source in version control so it's not as clean as other cases of self-hosted things
@wolf480pl @yyp New post on the Hare programming language blog: "Generating code generator generators in Hare"