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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions