The paper describes symbolic structure of word of program language with regular grammar and regular expression, constructs converted-state chart to identify word symbol.
用正规文法和正规表达式描述了程序语言的单词符号的结构,用状态转换图构造了识别单词符号。
At the base of converted-state chart, building morphology table, designing a section of program for every status, in order to enable lexical analysis to recognize word from character string.
在状态转换图的基础上,构造词形表,为每个状态设计一段处理程序,使词法分析能从字符串中识别单词。
应用推荐