[Chapel Merge] Fix several issues with c2chapel

Branch: refs/heads/main
Revision: 706a2466059b585277dc1bc1a147a212cf465cf3
Author: jabraham17
Link: Fix several issues with c2chapel by jabraham17 · Pull Request #28516 · chapel-lang/chapel · GitHub
Log Message:
Fix several issues with c2chapel (#28516)

Fixes several issues I found with c2chapel

  • added several more Chapel keywords to the exclude list
  • fix parsing/generation of anonymous structs/unions
  • fix parsing of consts like static const foo = 10;
  • fix extraneous semicolons
  • added troubleshooting docs for how to work around parsing errors
  • modernized the test infrastructure for c2chapel to not be quite so
    special case and more consistent with how we test everything else
  • st test/c2chapel

[Reviewed by @benharsh]

Compare: Comparing 2e6ef2675cc4c6a02c4d9e8396b762526f14d119...7269efe6ff6a6a5a1fc312fd97b02e192af98d5c · chapel-lang/chapel · GitHub

Diff:
M doc/rst/tools/c2chapel/c2chapel.rst
M test/c2chapel/c2chapel-tester.chpl
M test/c2chapel/c2chapel-tester.good
M test/c2chapel/testStructs.c
M test/c2chapel/testStructs.chpl
M test/c2chapel/testStructs.good
M test/c2chapel/testStructs.h
M tools/c2chapel/Makefile
M tools/c2chapel/c2chapel.py
M tools/c2chapel/test/anonymousStruct.chpl
M tools/c2chapel/test/anonymousStruct.h
A tools/c2chapel/test/constants.chpl
A tools/c2chapel/test/constants.h
M tools/c2chapel/test/justC.chpl
M tools/c2chapel/test/opaqueStruct.chpl
M tools/c2chapel/test/opaqueUnion.chpl
M tools/c2chapel/test/sysCTypes.chpl
M tools/c2chapel/test/tester.sh
M util/cron/nightly
M util/cron/test-c2chapel.bash
https://github.com/chapel-lang/chapel/pull/28516.diff