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

Branch: refs/heads/main
Revision: 82cccdd
Author: e-kayrakli
Link: Allow `try!` in `yield` by e-kayrakli · Pull Request #19716 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19716 from e-kayrakli/try-in-yield

Allow try! in yield

This PR trivially changes the parser to allow try! in yield
statements.

[Reviewed by @vasslitvinov]

Test:

  • [x] standard linux64

    Modified Files:
    A test/errhandling/iterators/try-in-yield-try.good
    A test/errhandling/iterators/try-in-yield-tryBang.good
    A test/errhandling/iterators/try-in-yield.chpl
    A test/errhandling/iterators/try-in-yield.execopts
    M compiler/include/bison-chapel.h
    M compiler/include/flex-chapel.h
    M compiler/parser/bison-chapel.cpp
    M compiler/parser/chapel.ypp
    M compiler/parser/flex-chapel.cpp

    Compare: Comparing e5903231d75e...82cccdde87dd · chapel-lang/chapel · GitHub