devana.preprocessing
Subpackages
- devana.preprocessing.components
- Subpackages
- devana.preprocessing.components.extractors
- devana.preprocessing.components.property
- Subpackages
- devana.preprocessing.components.property.parsers
- devana.preprocessing.components.property.parsers.attributeparser
- devana.preprocessing.components.property.parsers.configuration
- devana.preprocessing.components.property.parsers.descriptions
- devana.preprocessing.components.property.parsers.parser
- devana.preprocessing.components.property.parsers.result
- devana.preprocessing.components.property.parsers.types
- devana.preprocessing.components.property.parsers
- Subpackages
- Subpackages
devana.preprocessing.preprocessor
- class IDestination[source]
Bases:
IInputContract
,ABC
Interface specifying a class that manages the recording of preprocessor output artifacts. Typical use case is the generation of c++ code to files on disk, but other outputs are also possible, although the artifacts are generally focused on the disk.
- class IGenerator[source]
Bases:
IInputContract
,IOutputContract
,ABC
A preprocessing unit which, based on general input data, generates output data by implementing methods of binding input and output data.
- class IInputContract[source]
Bases:
ABC
Contract that allows you to define what specific type is required.
- class IOutputContract[source]
Bases:
ABC
Contract that allows you to define what specific type is provided in the output.
- class ISource[source]
Bases:
IOutputContract
,ABC
The data source interface for the processor. Typical implementation assumes reading files (json or header files) and returning the parsed output of the generator, for example, C++ type systems from Devana.
- class Preprocessor(source, generator, destination)[source]
Bases:
object
A preprocessor class that, through aggregation, combines the provided data source, generator or class that saves input data into one coherent entity. It also provides validation contracts of the classes used.
- property destination: IDestination
- Return type
- property generator: IGenerator
- Return type
A feature set that combines code parsing and generation to provide a high-level feature set that allows for context-aware code preprocessing, such as runtime information generation, metaclass, and more.