[flang-commits] [flang] [flang][parser] handle semicolons uniformly in program unit constructs (PR #181180)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Feb 23 08:53:22 PST 2026


================
@@ -91,8 +91,9 @@ TYPE_PARSER(
                            "nonstandard usage: empty source file"_port_en_US,
                            skipStuffBeforeStatement >> consumedAllInput >>
                                pure<std::list<ProgramUnit>>()) ||
-        some(globalCompilerDirective || globalOpenACCCompilerDirective ||
-            normalProgramUnit) /
+        some(skipStuffBeforeStatement >> (globalCompilerDirective ||
----------------
klausler wrote:

My point was that now that you've solved the problem, you can now maybe simplify this modified parser a little.  If not, that's fine.

https://github.com/llvm/llvm-project/pull/181180


More information about the flang-commits mailing list