Code generation method and device, code generation equipment and storage medium
The invention relates to a code generation method and device, code generation equipment and a storage medium, and the code generation method comprises the steps: obtaining IO function configuration information of an application layer; analyzing the IO function configuration information to obtain IO...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a code generation method and device, code generation equipment and a storage medium, and the code generation method comprises the steps: obtaining IO function configuration information of an application layer; analyzing the IO function configuration information to obtain IO port metadata of N IO ports; wherein the metadata comprises an IO port identifier and an IC identifier, and N is a positive integer greater than or equal to 1; splicing IO port identifiers and IC identifiers in the IO port metadata into control function identifiers of corresponding IO ports on the basis of macro definitions and connection characters; and writing the control function codes of the N IO ports into the function bodies corresponding to the control function identifiers to form interface layer codes. According to the method, a large number of switch case statements can be prevented from being used on an interface layer, the workload of developers can be reduced, errors can be better avoided, maintenance i |
---|