expr-eval icon indicating copy to clipboard operation
expr-eval copied to clipboard

Checking if all referenced variables exist?

Open kinsi55 opened this issue 3 years ago • 0 comments

If I have a case where the expression is always evaluated against an object containing a specific list of variables, what would be the intended way to sanitize the passed expression? I assumed I could use variables() in one way or another, however that will also return variables which are defined in the expression itself.

I have a hacky solution now where I recursively iterate over the tokens and account for every IVARNAME this way but surely there has to be a better way for this right?

kinsi55 avatar Feb 03 '22 22:02 kinsi55