Expand description
The preprocessor is the first step in the compilation process. It is responsible for removing comments and expanding macros and directives.
It exposes three functions: preprocess_code, preprocess_codes and preprocess_variables
Enums§
- PPVar
- A preprocessor variable or macro.
Functions§
- preprocess_
code - Preprocesses code and gives back the a list of preprocessed code blocks and the variable
- preprocess_
codes - Preprocesses the list code segments, expands the variables and returns the final code. Take a stacklevel, a list of code segments, the variables, and a filename.
- preprocess_
variables - Expand the variables in a
CodeTakes a stacklevel, a code segment, the variables, and a filename. - read_
file - Reads a file and gives back the a list of preprocessed code blocks and the variables