Wednesday, October 28, 2020

How to Find FIRST & FOLLOW of GRAMMAR in Compiler Style ~ xRay Pixy

featured image

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).

http://xraytechniciancertification.org/how-to-find-first-follow-of-grammar-in-compiler-style-xray-pixy/

No comments:

Post a Comment