Expression icon indicating copy to clipboard operation
Expression copied to clipboard

Expose AST

Open wilg opened this issue 2 years ago • 1 comments

Not a super pressing need, but it would be kind of fun if the AST was exposed (I believe subexpression is fileprivate right now). We're using this library for procedurally generating textures, so we need all the performance we can get. We were thinking of writing a little compiler that will compile the expression to Swift code, or maybe to shader code. Thanks for the library!

wilg avatar Mar 17 '22 01:03 wilg

Sounds awesome. Feel free to open a PR that makes the parts you need public. The main reason I didn't make them public originally was so I could evolve the library without breaking changes, but it's been stable for a while now.

nicklockwood avatar Mar 17 '22 07:03 nicklockwood