Import ExternalDeclaration

ExternalDeclaration := 'import' ImportFileName_t ';'

This is a bridging production from the nonterminal ExternalDeclaration in C. It is used as a temporary approach for including header files (reference). The include macro is not directly used because of issues of not able to parse some C++ syntax (the include macro would be preprocessed to insert the content of the header file).

  • ImportFileName_t is a terminal that matches strings like those used for including files in C/C++ (e.g. '<string>', '"math.h"').