摘要: 主要讨论了(SLR1)词语法分析器的自动构造,自动生成的()语法分析器可从自动生成的()词法分析器中获得测试SLR1/SLR1SLR1数据进行语法分析,论文相关的软件除可用于编译原理课程教学演示外,还可用于实际编译程序的()词语分析器的自动构造。由于SLR1/具有()分析表自动构造功能,因此该软件还可作为软件工具用于程序设计语言本身的设计和构造。
关键词:
编译程序,
翻译程序,
词法分析,
语法分析,
自动构造
Abstract: An automatic generator of SLR(1) lexical & grammatical analyzer is proposed in this paper.SLR(1) grammatical analyzer can obtain the testing data to parse from the SLR(1) lexical analyzer.Both of them are generated automatically in the same way.The software which the paper based on can be used not only in demonstrating for teaching,but also in automatic constructing of SLR(1) lexical& grammatical analyzer which will be used in compiler.For SLR(1) analytical table can be produced automatically,the generator can alsobe used to design the programming language as a software tool.
中图分类号:
温敬和,温敬平. SLR(1)词/语法分析的自动构造[J]. , 2002, 28(03): 276-278.
WEN Jinghe1,WEN Jingping2. The Automatic Generation of SLR(1) Lexical & Grammatical Analyzer[J]. , 2002, 28(03): 276-278.