ganezdragon / tree-sitter-perl

a perl parser for javascript
MIT License
33 stars 9 forks source link

don't produce named nodes from semicolons #3

Closed rabbiveesh closed 2 years ago

rabbiveesh commented 3 years ago

The parse tree should not contain any semi-colons. They don't provide any syntactic information that isn't already clear from the S-tree that was parsed

ganezdragon commented 3 years ago

@rabbiveesh , I wanted it to be a named tree node, so that we could uniquely identify if a semi-colon is MISSING for the tree when required.

This also helps me in throwing errors/warning in this LSP implementation here - https://github.com/ganezdragon/perl-language-server

But please let me know your thoughts on this.

rabbiveesh commented 2 years ago

Hi, I think we have different goals for a tree-sitter parser, and I've moved to working on a fork instead.