Method and system for realizing high-low code platform based on AST abstract syntax tree

Through the AST abstract syntax tree method, the problem of low code quality and high inverse parsing process in the high and low code platform is solved, and the direct customization of logic and advanced operations in the high and low code platform is realized, and the improvement of the improvement of the high and low code platform is achieved. Development efficiency.

CN119088395APending Publication Date: 2024-12-06CHINA CITIC BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411023476.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

During the code parsing and inverse parsing, the generated code quality is not high and cannot completely restore the user's original design, and inverse parsing requires a lot of manpower and time cost.

Method used

Using the AST abstract syntax tree method, the source code of the visual element is inversely parsed and generated by AST through the template compiler vue-template-compiler plug-in, which can be designed and configured in the visual interface, and the generated source code is imported for self-import. Define or modify.

Benefits of technology

Improve development efficiency and realize direct custom logic or advanced operations in high and low code platforms, synchronous updates of generated source code and visual elements, without the need to create code and then carry out high-code development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088395A_ABST
    Figure CN119088395A_ABST
Patent Text Reader

Abstract

The invention relates to a method and system for realizing a high-low code platform based on an AST abstract syntax tree, and the method comprises the steps: carrying out the segmentation processing of a source code of a vue file, and obtaining a first segmentation block and a second segmentation block; converting the first segmentation block into a first abstract syntax tree, and converting the second segmentation block into a second abstract syntax tree; extracting an interface module from the second abstract syntax tree structure, and obtaining an abstract syntax tree structure of each separation module according to the abstract syntax tree structure of the interface module; analyzing the abstract syntax tree structure of the separation module, modifying the attribute configuration of a high-low code platform or increasing or decreasing a canvas area, and synchronously updating the abstract syntax tree structure of the separation module and a first abstract syntax tree when modifying visual elements; converting according to the first abstract syntax tree and the second abstract syntax tree to obtain codes, and assembling the codes into the vue code. Visual element dragging, self-defining logic or advanced operation and source code generation can be directly carried out through the high-low code platform, codes do not need to be generated firstly and then high code development is carried out, and the development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art