[QUESTION] - Is it possible to get information for function arguments? #469
Replies: 5 comments
-
|
Yes. It is totally possible. Just use the visitor https://expr.medv.io/docs/Visitor-and-Patch |
Beta Was this translation helpful? Give feedback.
-
|
@antonmedv Thanks. I will check it. Is it fine to identify |
Beta Was this translation helpful? Give feedback.
-
|
Not sure what you asking about. |
Beta Was this translation helpful? Give feedback.
-
|
I meant, When I try to Parse v, err := expr.Parse("a.b")
if err != nil {
panic(err)
}
fmt.Println(v.Variables, v.Constants)IMO,
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've a requirement to get information about a function and it's arguments.
For e.g.
age(customer.dob, 'Male')Here I wanted to identify above something like
{ "func_o": "age", "arguments": [ {"argument": "customer.dob","type": "variable"}, {"argument": "'Male'","type": "constant"} ] }Beta Was this translation helpful? Give feedback.
All reactions