-
Notifications
You must be signed in to change notification settings - Fork 79
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
How to normalize list nodes? #56
Comments
@benchub Not sure if you are still looking for this - but the quick TLDR is that you would construct the appropriate Protobuf structure. See here for a similar example than the one you are asking for: Lines 152 to 203 in ee7bb71
And then pass it to the Deparse function: Just in case you were worried about the |
I would like to modify the parse tree so that
in (1)
andin (1,2,3)
end up looking the same. I can find the list node well enough, but it's not clear how to replace it - not only do I not know what function to use to make a new list node with a single item, it's not clear to me how that would affect the locations of all the other parse tree tokens.If you could give an example of this, that would be amazing.
The text was updated successfully, but these errors were encountered: