GabrielDosReis / ipr

Compiler-neutral Internal Program Representation for C++
BSD 3-Clause "New" or "Revised" License
221 stars 23 forks source link

Refine C++ form for _declarator-id_ #291

Closed GabrielDosReis closed 1 year ago

GabrielDosReis commented 1 year ago

This patch replaces the class cxx_form::Declarator::Id with three classes that better represent the various alternatives of the C++ grammar production for declarator-id. This allows the resulting structures to be used in more natural representations of the grammar production abstract-declarator.