-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
AST is too noisy #39
Comments
Hi @calebdw ! Yes I am aware, unfortunately that was the only way to get the grammar working. So the reason behind this
Here is an example:
or
or even worse, you have a function call inside as a directive parameter that calls another function. recursively! 😬 Now, I have a quick question, I have been using your old Screen.Recording.2023-11-30.at.16.42.51.mov |
You might try playing around with left/right associativity---that might combine the nodes into each other. This can be solved with an external parser, but it would be nice to come up with a solution that doesn't require it. As for the While Nova might not show you the AST, I can see from your video that you have many @amaanq is a treesitter guru, perhaps he would be kind enough to take a look and give some suggested improvements? |
Hi @calebdw, I had a bit of an epiphany and I think I managed to fix the noise 🤞, with minimal collateral damage, could you please test the branch #39. The However I parsed your code excerpt using the BeforeAfterIf all good on your side, please do let me know and I will go ahead and release |
The |
@calebdw All done, the AST should now be as clean as it can be! Thanks for bringing it all to my attention, esp the text inside the They should all now be parsed as one node be it BeforeAfter |
Hello!
Please see below screencast---the ast is too noisy in that there's too many
php_only
nodes. This is likely an artifact of the regex parsing, but there should only be onephp_node
for that entire block not 16.Screencast.from.11-30-2023.09.38.29.AM.webm
Thanks!
The text was updated successfully, but these errors were encountered: