Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 1022 Bytes

lex_pptoken.md

File metadata and controls

19 lines (14 loc) · 1022 Bytes
#define STR_START "
#define STR_END "

int puts(const char *);

int main() {
    puts(STR_START hello world STR_END);
}
  • Discussion
  • Rationale
    • Preprocessing token are generated during phase 3 so string and character literals as well and header names are identified at this point. both ‘ and “ would only be valid as part of one of these tokens, any left over after this point perhaps as part of a macro would not be valid since they could not tokenized as needed anymore. Macros are expanded as part of phase 4.