[Chapel Merge] next: Add uAST nodes for Try, Catch, and Throw

Branch: refs/heads/main
Revision: b29467b
Author: dlongnecke-cray
Log Message:

Merge pull request #18106 from dlongnecke-cray/next-add-try-catch

next: Add uAST nodes for Try, Catch, and Throw

This is for compiler/next.

Add uAST nodes for Try, Catch, and Throw. Adjust the parser
to produce the new nodes using helper functions. Add a parser
test. Adjust convert-uast to convert the new nodes to AST.

The errorHandling primer almost passes except for an implicit-module
warning that is not appearing.

This PR does not rebuild the compiler/next parser.

Reviewed by @mppf and @daviditen. Thanks!

TESTING:

  • [x] Can build chpl
  • [x] All compiler/next tests pass

Signed-off-by: David Longnecker dlongnecke-cray@users.noreply.github.com

Modified Files:
A compiler/next/include/chpl/uast/Catch.h

A compiler/next/include/chpl/uast/Throw.h
A compiler/next/include/chpl/uast/Try.h
A compiler/next/lib/uast/Catch.cpp
A compiler/next/lib/uast/Throw.cpp
A compiler/next/lib/uast/Try.cpp
A compiler/next/test/parsing/testParseTryCatchThrow.cpp
M compiler/next/include/chpl/uast/ASTClassesList.h
M compiler/next/include/chpl/uast/all-uast.h
M compiler/next/lib/parsing/ParserContext.h
M compiler/next/lib/parsing/ParserContextImpl.h
M compiler/next/lib/parsing/chpl.ypp
M compiler/next/lib/uast/CMakeLists.txt
M compiler/next/lib/uast/Makefile.include
M compiler/next/test/parsing/CMakeLists.txt
M compiler/passes/convert-uast.cpp

Compare: https://github.com/chapel-lang/chapel/compare/aea506611216...b29467b49a30