-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathoutput.txt
More file actions
19 lines (19 loc) · 1.09 KB
/
Copy pathoutput.txt
File metadata and controls
19 lines (19 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
******************first set*******************
FIRST(E)={(,id}
FIRST(E')={#,+}
FIRST(T)={(,id}
FIRST(T')={#,*}
FIRST(F)={(,id}
******************follow set*******************
FOLLOW(E)={$,)}
FOLLOW(E')={$,)}
FOLLOW(T)={$,),+}
FOLLOW(T')={$,),+}
FOLLOW(F)={$,),*,+}
************************parsing table************************
+ * ( ) id $
E E->T E' E->T E'
E' E'->+ T E' E'-># E'->#
T T->F T' T->F T'
T' T'-># T'->* F T' T'-># T'->#
F F->( E ) F->id