CODE PROCESSING METHOD, APPARATUS, DEVICE, AND MEDIUM

The present application provides a code processing method. The method is applied in the technical field of software development, and comprises: receiving, by means of a user interface, a code input by a user; determining, according to the code input by the user, a context feature of a code to be com...

Full description

Saved in:
Bibliographic Details
Main Authors PAVEL, Petrochenko, WANG, Yawei, DMITRY, Karpenko
Format Patent
LanguageChinese
English
French
Published 05.05.2022
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The present application provides a code processing method. The method is applied in the technical field of software development, and comprises: receiving, by means of a user interface, a code input by a user; determining, according to the code input by the user, a context feature of a code to be completed; then, determining, from a context database according to the context feature of the code to be completed, at least one candidate item of the code to be completed, the context database storing sample codes and context features of the sample codes; and then presenting the at least one candidate item to the user by means of the user interface. The candidate item is obtained by means of static analysis of the code, such as static syntax analysis and static semantic analysis, and thus, the candidate item conforms to syntax rules, and has a high probability to succeed in compilation check. Therefore, the candidate item predicted by the method has high accuracy, and code completion based on the candidate item can i
Bibliography:Application Number: WO2021CN123127