语法分析结果:
1函数定义:A->Eid(G){BC}
G->EJ|ε
J->idS
S->,EJ|ε
E->t|c|a
B->DI
I->B|ε
C->KL
K->P|Q|M|N|O
P->R
Q->{C}
L->C|ε
2变量说明:D->EF;
E->t|c|a
F->idH
H->,F|ε
3赋值:R->id=T
4表达式:T
T->WX
W->YZ
Y->(T)|id|n
Z->/YZ|*YZ|ε
X->-WX|+WX|ε
5循环:O->for(R;U;R)K N->while(U)K
R->id=T
U->TVT
V-><|>|==
6分支:M->if(U)KelseK
语法分析过程:
文法 分析的token系列:
$E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){BC}E0i(G){BC}# inti(inti,inti){inti,i,i,i;inti,i;chari;for(i=num;i<num;i=i+num){i=i;if(i==num){i=num+num/num;}elsei=i+num/num*(num+num);for(i=num;i<i;i=i+num){if(i/i>num)i=i*num;elsei=i/num;}while(i<i){i=i*num;}i=i+num;}}#
@菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙菙E0i(G){BC}E0i(G){B
- 1
- 2
前往页