CyberShadow / tree-sitter-d

17 stars 6 forks source link

Ensure all DMD `test/compilable` tests parse successfully #2

Closed CyberShadow closed 3 years ago

CyberShadow commented 3 years ago

The test suite for DMD (the reference D compiler) has a category for source files which are expected to compile successfully.

Respectively, they should also parse without errors using our tree-sitter grammar. However, currently this is not the case.

Here are the files that have parse errors right now:

These should be made to compile, either by updating the spec to match the compiler's behavior, or by adding a grammar fix-up (or, in the unlikely case that the test really shouldn't compile, by updating the test suite and fixing the compiler to reject the program).

CyberShadow commented 3 years ago

We now parse all DMD compilable tests, yay!

But, there's still a lot of valid D code out there that we cannot parse. I will open a new issue for those.