Method and system for generating target language source code from spreadsheet and storage medium
By selecting the output leadership grid in the spreadsheet, obtaining and recording the grids it references, and generating calculation class and cache class code, the problem of difficulty in generating source code in a specific form in the existing technology is solved, and the convenience of writing functions that can return multiple results is achieved.
Patent Information
- Application Number
- CN202411797356.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-03-18
AI Technical Summary
The prior art is difficult to generate source code in a specific form, especially when writing functions that can return multiple results, due to the functions of existing code writing tools and the syntax rules of the programming language.
By selecting the output leadership grid in the spreadsheet, obtain the grids that are directly or indirectly referenced, and record the reference relationships. Based on these grids and reference relationships, calculate class code and cache class code are generated under the target language syntax requirements.
It implements the easy way to write functions that can return multiple results without being restricted by existing code writing tools and programming language syntax rules, and generate source code that conforms to the target language syntax.