[Chapel Merge] dyno: Clean up driver code for old/dyno parsers (#

Branch: refs/heads/main
Revision: 298724c
Author: dlongnecke-cray
Link: dyno: Clean up driver code for old/dyno parsers by dlongnecke-cray · Pull Request #19733 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19733 from dlongnecke-cray/dyno-old-parser-cleanup

dyno: Clean up driver code for old/dyno parsers (#19733)

Adjust the driver code in compiler/parser/parser.cpp to cleanly
wrap calls to the old/new parsers in the parseFile function (which
is called by other driver code to implement everything else).

Remove the helper function uASTAttemptToParseMod since it is no
longer necessary.

Remove some debug dumps that are guarded by macros. Use of debuggers
is preferable here.

Rename uAST -> dyno in some helper function names.

Add an INT_FATAL when calling countTokens() under dyno, because
this functionality is not supported yet.

TESTING

  • [x] ALL on linux64 when COMM=none

Reviewed by @mppf. Thanks!

Modified Files:
M compiler/parser/parser.cpp

Compare: https://github.com/chapel-lang/chapel/compare/c2b7238cc175...298724cbcb37