Module clue_core::preprocessor
source · 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§
- A preprocessor variable or macro.
Functions§
- Preprocesses code and gives back the a list of preprocessed code blocks and the variable
- 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.
- Expand the variables in a
Code
Takes a stacklevel, a code segment, the variables, and a filename. - Reads a file and gives back the a list of preprocessed code blocks and the variables
Type Aliases§
- A list of code segments and its size.
- A HashMap of preprocessor variables.