This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch mismatched parentheses in prescanner
ClosedPublic

Authored by klausler on Oct 6 2021, 11:49 AM.

Details

Summary

Source lines with mismatched parentheses are hard cases for error
recovery in parsing, and the best error message (viz.,
"here's an unmatched parenthesis") can be emitted from the
prescanner.

Diff Detail

Event Timeline

klausler created this revision.Oct 6 2021, 11:49 AM
klausler requested review of this revision.Oct 6 2021, 11:49 AM
PeteSteinfeld accepted this revision.Oct 6 2021, 1:56 PM

LGTM

Looks great! Thanks for doing this.

This revision is now accepted and ready to land.Oct 6 2021, 1:56 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2021, 2:00 PM