One-Page Reference Tables
TOC Closure Properties, Decidability & Compiler LR Parsers Cheat-Sheet
Formal Languages Closure & Decidability Reference
| Property / Operation | Regular | DCFL | CFL | CSL | Recursive (REC) | Rec. Enum. (RE) |
|---|---|---|---|---|---|---|
| Union | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
| Intersection | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ |
| Complement | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ |
| Concatenation / Kleene Star | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
| Intersection with Regular | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Emptiness () | Decidable | Decidable | Decidable | Undecidable | Undecidable | Undecidable |
| Equivalence () | Decidable | Decidable | Undecidable | Undecidable | Undecidable | Undecidable |
Compiler Parsing Hierarchy
- Number of States:
- Ambiguous Grammar: Never , never !