›› 2015, Vol. 28 ›› Issue (12): 110-.

• Articles • Previous Articles     Next Articles

Design and Implementation of Lexical Analyzer in Program Source Code Similarity Measurement

YU Haiying   

  1. (College of Computer Information and Management,Inner Mongolia Finance and Economics University,Hohhot 010070,China)
  • Online:2015-12-15 Published:2015-12-15

Abstract:

A design and implementation scheme of lexical analyzer based on language dictionary is proposed for lexical analysis in program source code similarity measurements.The program source codes are converted first into a string,which is decomposed character by character to obtain each token of the program source codes,whose type is judged for lexical analysis.Experimental results show the scheme can effectively analyze the lexical structure of the program source codes.

Key words: lexical analyzer;Token;language dictionary;source code analyzing

CLC Number: 

  • TP311.11