Closed Specy closed 4 days ago
S->A B A-> C C-> D D -> '' B->'x'
This grammar produces follow/first table:
+--------+-----------+------------+ | Symbol | First Set | Follow Set | +--------+-----------+------------+ | C | { ε } | { 'x' } | +--------+-----------+------------+ | D | { ε } | { 'x' } | +--------+-----------+------------+ | B | { 'x' } | { $ } | +--------+-----------+------------+
Looking at the output it seems like the Follow table is constucted correctly, but the FIRST table is missing the symbols "S,A"
This grammar produces follow/first table: