likebike / fasteval

Fast and safe evaluation of algebraic expressions
https://crates.io/crates/fasteval/
MIT License
267 stars 26 forks source link

Q: Is it possible to get a list of variables from a parsed or compiled expression? #21

Closed metasim closed 2 years ago

metasim commented 2 years ago

Title says it all... I'd like to read in an arbitrary expression and find out what variables need binding (so I can look them up).

metasim commented 2 years ago

I think I figured it out: Evaler::var_names?