[Chapel Merge] dyno: Allow `try!` in `yield`

Branch: refs/heads/main
Revision: cf7b281
Author: arezaii
Link: Unavailable
Log Message:

Merge pull request #19789 from arezaii/dyno-try-bang

dyno: Allow try! in yield

This PR implements the ability to use try! statements with
yield in the dyno parser.

We are catching up to the implemented feature in the production
parser, updated in Allow `try!` in `yield` by e-kayrakli · Pull Request #19716 · chapel-lang/chapel · GitHub.

Aside from a small change to the productions, I have added a parse
test for dyno.

TESTING:

  • [x] paratest
  • [x] paratest with --dyno (34 failures)

reviewed by @dlongnecke-cray - thanks!

Signed-off-by: arezaii ahmad.rezaii@hpe.com

Modified Files:
M compiler/dyno/lib/parsing/bison-chpl-lib.cpp

M compiler/dyno/lib/parsing/chpl.ypp
M compiler/dyno/test/parsing/testParseYield.cpp
M compiler/dyno/test/uast/testStringify.cpp

Compare: https://github.com/chapel-lang/chapel/compare/774aac5d5731...cf7b281a439c