[flang-commits] [PATCH] D111254: [flang] Catch mismatched parentheses in prescanner

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Oct 6 11:49:48 PDT 2021


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D111254

Files:
  flang/lib/Parser/prescan.cpp
  flang/lib/Parser/token-sequence.cpp
  flang/lib/Parser/token-sequence.h
  flang/test/Parser/unmatched-parens.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111254.377627.patch
Type: text/x-patch
Size: 6226 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211006/3941cb42/attachment.bin>


More information about the flang-commits mailing list