It consists of a series of rules that lex translates into the lexical analyzer.
它由一系列规则构成,lex将这些规则翻译为词汇分析器。
An important part of the input process is carried out by the lexical analyzer.
输入过程的一个重要部分由词法分析器来进行。
The former cases represent design errors; the latter cases can often be corrected by making the lexical analyzer more powerful, or by rewriting some of the grammar rules.
前者会产生设计错误,后者一般能通过加强词法分析器来修复,或者重写其中一些语法规则。
应用推荐