elliptic.Kernel.DSL module¶
-
class
elliptic.Kernel.DSL.DSL(template_manager, dsl_contract, dsl_meta)[source]¶ Bases:
objectDefines the interface for interacting with a DSL.
- Parameters
template_manager (
TemplateManagerBase) – A TemplateManagerBase subinstance.dsl_contract (
DSLContract[~DSLImplementationSubclass]) – A DSL Contract.dsl_meta (
DSLMeta) – A DSLMeta instance.
-
get_built_module()[source]¶ Returns the compiled module that holds the generated code.
- Return type
module
-
root()[source]¶ Entry point for building expressions.
Should be used as a context manager, using the with statement.
- Return type
Iterator[DSLContract[~DSLImplementationSubclass]]
-
exception
elliptic.Kernel.DSL.DSLBuildError[source]¶ Bases:
elliptic.Kernel.DSL.DSLExceptionException raised when an error related to a DSL build process happens.
-
class
elliptic.Kernel.DSL.DSLMeta[source]¶ Bases:
abc.ABCClass which stores information regarding the DSL compilation.