Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 3.85 KB

File metadata and controls

46 lines (30 loc) · 3.85 KB
graph LR
    Code_Generation_Core["Code Generation Core"]
    Enumeration_Generator["Enumeration Generator"]
    Enumeration_Generator -- "uses" --> Code_Generation_Core
    Enumeration_Generator -- "depends on" --> Code_Generation_Core
Loading

CodeBoardingDemoContact

Details

This subsystem encompasses the core Python modules responsible for generating C/C++ source code. Its boundaries are defined by: pysrc.codegen (File: /mnt/e/StartUp/xed/pysrc/codegen.py) and pysrc.enumer (File: /mnt/e/StartUp/xed/pysrc/enumer.py).

Code Generation Core

This component serves as the foundational, general-purpose utility for emitting C/C++ source code. It provides low-level primitives for file output, managing standard headers, adding arbitrary code lines, declaring variables, and generating common C functions (e.g., for lookup tables). It acts as the primary engine for transforming Python data structures into C/C++ code.

Related Classes/Methods:

Enumeration Generator

This specialized component focuses on the management and generation of C/C++ enumeration types. It processes enumeration definitions and translates them into corresponding C/C++ header and source file code. It leverages the capabilities of the pysrc.codegen module for the actual code emission, acting as a higher-level abstraction for a specific code generation task.

Related Classes/Methods: