Context(X) for Predictive Parser: Variant II
56/57
For  G = (N, T, P, S),
Context(A) = First(A) È Follow(A) for every A Î N
• Method:
• Let A be pushdown top & no rule is applicable:
• repeat
a := GetNextToken;
{These tokens are skipped}
   until a in Context(A)
• if a  Î First(A) then resume according to A
  else pop A from the pushdown // a Î Follow(A)