Context-Free Grammar (CFG) Tools
Define grammars, compute sets, eliminate left recursion, and parse strings.
Grammar Definition
Define productions one per line. Use '|' for alternatives, spaces to separate symbols, and 'ε' for epsilon. The first variable is the start symbol.
First & Follow Sets
Please provide a valid CFG to compute its First & Follow sets.