eclipse-jdt / eclipse.jdt.core

Eclipse Public License 2.0
164 stars 130 forks source link

Investigate if ECJ's parser be simplified by incorporating overlooked last minute spec revisions #1045 #3022

Open stephan-herrmann opened 1 month ago

stephan-herrmann commented 1 month ago

WIP regargding https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1045

@srikanth-sankaran this draft demonstrates that much of our solution can perhaps be found in JLS indeed:

Looking at the current spec, I find exactly three rules that may branch into LambdaExpression:

Much to my surprise this is accepted by jikespg, with 1.5 caveats:

Results so far:

stephan-herrmann commented 1 month ago

No test results, because now the compiler can't compile itself ;-P

srikanth-sankaran commented 1 month ago

WIP regargding #1045

@srikanth-sankaran this draft demonstrates that much of our solution can perhaps be found in JLS indeed:

Thanks, I will review this next week -