Replies: 1 comment
-
I think it should be fairly easy. Use https://expr.medv.io/docs/Visitor-and-Patch Patch an expression to return a tuple with the result and value from this:
to this:
From AST:
to
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know this would be a tricky to implement or may require some workaround. The question actually quite simple: With the following expression structure, how to get arithmetic result along with evaluation result?
For example, what's best to way to return the value of
foo+bar+baz
=6
withtrue
evaluation result?I know this is a way too open to bugs and unexpected cases, but still, any workaround or ideas here? What should I do?
Beta Was this translation helpful? Give feedback.
All reactions