LL( 1) Parsing|Discover FIRST & FOLLOW of GRAMMAR|Compiler Design |
Predictive Parsing|LL( 1) parsing
Guidelines for FOLLOW:
1.) Location $ in FOLLOW(S), Where S is the Start Sign.
2.) If there is a Production A → αBβ, Then Whatever in FIRST(β) except ϵ remains in FOLLOW(B).
3.) If there is a Production A → αB or A → αBβ, where FIRST(β) consist of ϵ, then Whatever in FOLLOW(A) remains in FOLLOW(B).
No comments:
Post a Comment