Module preprocessor

Source
Expand description

Scans input file into preprocessor-tokens and handles all preprocessing-directives

Modules§

scanner
Scans input into preprocessor-tokens with corresponding locations in the input file.
Comments will be skipped and multiline-strings collapsed into single line, while still maintaining correct location.
Doesn’t emit any errors.

Structs§

PPToken
Adds filename info to scanner-token, since scanner doesn’t have that information
Preprocessor
Handles all preprocessing-directives and converts them into regular tokens