FIRST and FOLLOW Calculator
Computes both sets for every non-terminal of a context-free grammar, which is the step every LL(1) parsing table is built on. The first symbol of the first rule is taken as the start symbol.
What each set means
FIRST(X) is the set of terminals that can begin a string derived from X. It answers the parser's real question: seeing this token next, which production could possibly apply?
FOLLOW(A) is the set of terminals that can appear immediately after A in some derivation. It matters only because of ε: when A can vanish, the parser must decide what to do using whatever comes after A instead, so the production for ε is selected on FOLLOW(A).
Where the marks are usually lost
ε propagates through a sequence. For a rule A → B C, FIRST(A) includes FIRST(B); but if B is nullable you must also add FIRST(C), and only if C is nullable as well does ε itself belong to FIRST(A). Stopping at the first symbol is the single most common error.
ε never belongs to a FOLLOW set. FOLLOW contains terminals that can actually appear after the non-terminal, plus the end marker $. Since ε is not a terminal that can be read, it cannot follow anything.
The start symbol's FOLLOW always contains $. Whatever else is in there, the end of input can always follow the start symbol.
FOLLOW is not FIRST of the next thing when that thing is nullable. For A → B C, FOLLOW(B) gets FIRST(C) minus ε — and if C is nullable, it also gets everything in FOLLOW(A).
From these sets to a parsing table
For each production A → α, the entry goes under every terminal in FIRST(α); if α is nullable, it also goes under every terminal in FOLLOW(A). Two productions landing in the same cell means the grammar is not LL(1) — usually left recursion or a common prefix that needs factoring. The LL(1) parser tab does that construction and names the conflicts.
Where this fits
FIRST and FOLLOW sets are the input to both families of parsers. The LL(1) parser builds its parsing table from them, and the SLR(1) table in the LR parser puts reduce actions only under the FOLLOW set of each rule's left side. Compute the sets here, then check your table there.