Read and parse files from the file system to a translation unit ensemble constant.
This macro combines read-files and parse-files, but without creating a named constant for the fileset. It just creates a named constant for the translation unit ensemble.
This macro currently does not perform very thorough input validation, but we plan to improve that.
(read-and-parse-files :const ... ; no default :files ... ; no default :preprocessor ... ; default nil :gcc ... ; default nil )
Name of the generated constant that contains the translation unit ensemble.
This must be a symbol that is a valid name for a new named constant.
In the rest of this documentation page, let
*const* be this symbol.
List of zero or more file paths that specify the files to be read.
This must be a list of strings that are valid path names in the system. Non-absolute paths are relative to the connected book directory (see cbd).
This input to this macro is not evaluated.
Flag indicating the preprocessor to use, if any.
This must be
nil ,:auto , or a stringp.If this is a stringp, the preprocess-file tool is called on the files read at the file paths using the indicated preprocesser. If it is
:auto , we use the"cpp" preprocessor. If it isnil , we do not preprocess the files.
Boolean saying whether certain GCC extensions should be accepted or not.
The named constant containing the translation unit ensemble obtained by reading, optionally preprocessing, and parsing the files at the specified file paths.