G:S -> bRS | RcSa | @(epsilon)R -> acR | b....2-LOOKAHEAD(S->@) = {$,a,aa}2-LOOKAHEAD(R->b) = {b,ba,bb,bc}I don't understand a result of these rules..----+when I tried to solve 2-LOOKAHEAD(S->bRS), it solve easily.( {ba,bb} ).but I don't understand why 2-LOOKAHEAD(S->@) results are {$,a,aa} and2-LOOKAHEAD(R->b) are {b,ba,bb,bc}. Please explain how to get these results.
How to get 2-LOOKAHEAD results in this grammar?
compilers