metaborg / spoofax

Spoofax runtime
Apache License 2.0
129 stars 23 forks source link

Errors for non-assoc by storing extra data in parse table #73

Closed mpsijm closed 4 years ago

mpsijm commented 4 years ago

To be merged together with metaborg/jsglr#86 and metaborg/sdf#50. Recommended order of reading: SDF, JSGLR, Spoofax.

The method JSGLRI.addDisambiguationWarnings has been moved/renamed to JGSLR1I.addNonAssocErrorMessages. Because of this and the fact that JSGLR2 now generates its own error messages, JSGLRI no longer needs the abstract getNon{Assoc,Nested}Productions methods.

Finally, JSGLR1 now also generates an error instead of a warning (see JSGLR1I.java:{229,244}).