Community
Participate
Working Groups
This is the first of several enhancements we need to make to the C preprocessor in Photran. The C preprocessor directives corresponding to particular tokens are stored as CPreprocessorReplacement objects. These store the content of the directive as a string. The directive needs to be stored in a manner that lets them be processed more easily, perhaps as a small AST. For example, it should not be necessary to parse a string to determine whether it is an #include expansion or a macro expansion.