Enter a grammar below and click "Analyze", and the First/Follow/Predict sets for the grammar will be shown on the right. The syntax for grammars is:
exp ->
exp OPA term), terminals, non-terminals
and -> all have to be space separated from
one another.
epsilon, which means that the one reserved
word is epsilon. You can't use that as a
terminal or non-terminal.
| Input Grammar | Output |