Replies: 2 comments 1 reply
|
Oops! I just found the generator: I guess that answers my question, although I'm curious if you considered using something like source_gen. |
0 replies
|
Here are a bunch of generators in the same style from other packages I wrote:
I don't think helper packages were around when I first wrote these code generators, and afterwards I just forked and adopted them as needed. Also source_gen and the upcoming macros (which I am very much excited about) are more about extending and transforming existing code, in all my cases I just wanted to one-time generate some repetitive code in the package. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am looking into generating code for a package of mine, and am evaluating methods for doing this.
I noticed that some of the code in this package is generated:
https://github.com/petitparser/dart-petitparser/tree/main/lib/src/parser/combinator/generated
I didn't see any mention of the tools or methods used. What are they, and how do you find them?
All reactions