Description: 本设计使用C语言实现了对简单方法描述的LL(1)文法的判定。该设计程序实现了:⑴分别求出每一产生式的右部的FIRST 集、每一个非终结符的FOLLOW集和每一产生式的SELECT集;⑵判定是否是LL(1)文法;⑶画出预测分析表;⑷对给定的符号串判定是否是文法中的句子,分析过程在屏幕上打印出来。
欢迎大家给程序提出富贵意见!-the design of the C language to describe a simple method of LL (1) grammar convicted. The design process was realized : 1 were calculated for each production of the right of the FIRST episodes, each end of a non-Fu FOLLOW sets and the production of each SELECT set; 2 determine whether LL (1) grammar; 3 paint Forecast and Analysis table; 4 the right to determine whether or not a bunch of symbols is grammar the sentences analysis on the screen printed. Welcome to the procedure rich views! Platform: |
Size: 147456 |
Author:张玉峰 |
Hits: