Code detection processing method and device

The embodiment of the invention provides a code detection processing method and device.The code detection processing method comprises the steps that on one hand, grammar features of a to-be-detected code are determined based on a grammar tree of the to-be-detected code, on the other hand, code index...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: ZHANG GEHAO, JIANG WEI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides a code detection processing method and device.The code detection processing method comprises the steps that on one hand, grammar features of a to-be-detected code are determined based on a grammar tree of the to-be-detected code, on the other hand, code indexes of the to-be-detected code are calculated, and the code indexes are converted to obtain index features; and on the basis, performing feature analysis processing in combination with the grammar features and the index features to obtain code features of the to-be-detected codes, and detecting code information of associated codes of the to-be-detected codes in a code library according to the code features of the to-be-detected codes. 本说明书实施例提供了代码检测处理方法及装置,其中,一种代码检测处理方法包括:一方面基于待检测代码的语法树确定待检测代码的语法特征,另一方面计算待检测代码的代码指标,并对代码指标进行转换处理获得指标特征,在此基础上,结合语法特征和指标特征进行特征解析处理,获得待检测代码的代码特征,根据待检测代码的代码特征,在代码库中检测待检测代码的关联代码的代码信息。