搜索资源列表
ag
- 词法分析程序,可对以下的C源程序进行分析:main() {int a[12] ,sum for(i=1 i<=12 i++) {for(j=1 j<=12 j++)scanf(\"%d\",&a[i][j]) } for(i=12 i>=1 i--){ for(j=12 j>=1 j--){ if(i==j&&i+j==13)sum+=a[i][j] } } printf(\"%c\",sum) }-lexical analysis procedures, right b
pl/0
- /*PL/0编译系统C版本头文件pl0.h*/ /* typedef enum { false, true } bool; */ #define norw 13 /*关键字个数*/ #define txmax 100 /*名字表容量*/ #define nmax 14 /*number的最大位数*/ #define al 10
tiny-parse
- Syntax of TINY+ An EBNF grammar for TINY+ is as follows (Strings in bold are terminals): 1. program -> declarations stmt-sequence 2. declarations -> decl declarations |² 3. decl -> type-specifi er varlist 4. type-speci