devana.code_generation

Subpackages

devana.code_generation.stubtype

class StubType(name)[source]

Bases: object

This class serves to create outside type representation without sourcing this to lexicon as right type or parse source file. StubType is just free string.

Good example are std types ile std::string or size_t. Parsing stdlib is definitely what you don’t want to do, so you are able to write this type as raw string for code generation. StubType is fast and easy way to stub type. For more complex features ypu should think about create yur own ClassInfo etc.

property name

Code generation module provides functionality to modify already parsed C++ code and generate new code without manipulation of raw strings.