The invention relates to the technical field of computers, and discloses an instruction optimization method and device based on an
abstract syntax tree, equipment and a medium, according to the method, the
abstract syntax tree is generated by analyzing a Vue template
source code, code logic can be more accurately understood, and a
list rendering instruction can be more accurately positioned. The
abstract syntax tree is traversed to identify the statement parameters and the
syntax structure of the
list rendering instruction, deletion detection is performed based on the
syntax structure, different deconstruction rules can be dynamically adapted, whether the instruction parameters are deleted or not can be accurately judged, and the
code development accuracy and development efficiency are improved. When parameter missing is detected, missing parameters are complemented according to the grammar structure, optimization of a
list rendering instruction is realized, development
workload is reduced, consistency of code styles is guaranteed,
maintainability of a front-end transaction
system of a financial institution or an
information management system of a
medical institution is improved,
system operation errors caused by parameter missing are avoided, and the system performance is improved. And the code quality and the development efficiency are obviously improved.