โš™ Theory of Computation

CFG Simplifier

Eliminate useless symbols from context-free grammars with step-by-step analysis and language preservation verification.

โœ๏ธ
Enter Context-Free Grammar
๐Ÿ’ก One rule per line  ยท  Use -> for productions  ยท  Use | for alternatives
Parse
โ€บ
Generating
โ€บ
Non-Generating
โ€บ
Reachable
โ€บ
Unreachable
โ€บ
Simplified
โ€บ
Verify
๐Ÿ“„
Original CFG
โœ…
Generating Symbols
๐Ÿ”—
Reachable Symbols
๐Ÿ—‘๏ธ
Removed (Useless) Symbols
โœจ
Simplified CFG
๐Ÿ”
Language Preservation Verification