使用LR分析表的词法分析器,统一了词法分析器和语法分析器的构造方法,简化了编译程序的设计和构造。
The lexical analyzer using the LR parsing table unifies the construction method of lexical analyzer and syntax analyzer, simplifies the design and construction of compiler.
然后介绍了以S语言为源语言运用编译构造原理和实现技术设计s语言的编译程序的词法分析器的过程和关键技术。
Then regard s language as the source language and use the compile principle and realized technical to design the lexical analysis of s language.
前者会产生设计错误,后者一般能通过加强词法分析器来修复,或者重写其中一些语法规则。
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.
前者会产生设计错误,后者一般能通过加强词法分析器来修复,或者重写其中一些语法规则。
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.
应用推荐