Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function argument parse error #81

Open
ioo0s opened this issue Jun 5, 2023 · 1 comment
Open

function argument parse error #81

ioo0s opened this issue Jun 5, 2023 · 1 comment

Comments

@ioo0s
Copy link

ioo0s commented Jun 5, 2023

I now have a scenario where the func call is test (IN arg1, IN arg2, OUT &arg3), then i want to match the 3rd arg, but when i was build source to tree , it have some error in argument node.

call_expression function: (identifier) arguments: (argument_list (ERROR (identifier)) (identifier) (ERROR (identifier)) (identifier) 

so i don't know how to match the (ERROR (identifier)) (identifier) , or how could i fixed it then it can identify this parameter.

I can ensure that this parameter is in the correct format for a certain scenario

@ioo0s
Copy link
Author

ioo0s commented Jun 5, 2023

When I try this syntax, it matches OUT, but it's not what I want.
I expect to match arg3.

weggli '_ $fn(_,_,$id){
_;
}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant