This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Would it be fine to write a recursive descent parser used only for OpenMP code, and then extend it to handle arbitrary translation units?
Your one sentence description is too short to be a properly assessable design (besides which some analysis of benefits and requirements, and of what the minimal incremental components of the change are, would be needed).
* Better error recovery and more accurate diagnostic location.
* Could the C++ parser be adapted? (The principles of minimal incremental changes mean that if the aim is to replace a parser then larger replacements such as "merge C and C++ front ends" don't need considering as alternatives, but a parser replacement could be considered as one incremental change towards such a merge, depending on the design adopted.)
* Parser actions and code in c-parse.in can move to separate files separately from a parser replacement, and so should move separately. Otherwise replacing a parser with minimal changes to other files is the minimal change.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |