[flang-commits] [flang] [flang] Implement conditional expressions parser/semantics (F2023) (PR #186489)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Sun Mar 29 18:54:40 PDT 2026
================
@@ -61,6 +61,34 @@ TYPE_PARSER(parenthesized(
TYPE_PARSER(construct<AcImpliedDoControl>(
maybe(integerTypeSpec / "::"), loopBounds(scalarIntExpr)))
+// Conditional expression lookahead helper: checks if input starting with '('
----------------
eugeneepshteyn wrote:
Could you please add tests with string literals containing `?` (e.g., "hello?") and comments containing `?`. This would help to ensure that parsing for other `?` still works correctly.
https://github.com/llvm/llvm-project/pull/186489
More information about the flang-commits
mailing list