intellij-powershell icon indicating copy to clipboard operation
intellij-powershell copied to clipboard

Port lexer and parser from the PowerShell repository

Open ForNeVeR opened this issue 8 months ago • 1 comments

While our recent struggles with the lexer and the parser so far weren't so fruitful (e.g., see #236 and #258), I have an idea of a radical improvement.

What if we try to port the whole lexer and parser from the actual PowerShell repo?

Let's see the following classes:

And see if it's possible to port them as-is (could be very tricky of course, but we can try!)

This will guarantee we have the last and the most correct definitions of everything in the original repo.

Our current definitions are not bad per se, but they are created from old PowerShell spec and thus are very outdated.

And the new spec, unfortunately, doesn't exist.

ForNeVeR avatar Feb 07 '25 22:02 ForNeVeR