尽管词法分析不是必须通过正则表达式来完成,但是它们往往可以便捷地解决程序编制和数据语言的难题。
While lexing does not have to be done through regular expressions, they tend to be a handy vehicle through the jungle of programming and data languages.
这个过程更正式的称呼是解析(parsing)(更准确地说,是标记解释(tokenizing)、词法解析(lexing)和语法解析)。
This process is known more formally as parsing (or to be more precise, tokenizing, lexing, and parsing).
词法分析的主要任务是:从左到右逐个字符地扫描源程序,产生一个个单词(Token),同时检查源程序中的词法错误。
Lexical analysis of the main tasks are: to scan source code character by character from left to right, resulting in one word (Token), also check the source of lexical errors.
应用推荐