[QUESTION] - Is it possible to get information for function arguments? #469
Unanswered
sujit-baniya
asked this question in
General
Replies: 5 comments
|
Yes. It is totally possible. Just use the visitor https://expr.medv.io/docs/Visitor-and-Patch |
0 replies
|
@antonmedv Thanks. I will check it. Is it fine to identify |
0 replies
|
Not sure what you asking about. |
0 replies
|
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,
|
0 replies
|
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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"} ] }All reactions