Should that grammar be: Expr = "A" | "(" Expr* ")" | "" so that (()) is s a valid match? Because then Expr can be an empty string also?
Every single time I try to do an online Compilers class, my brain gets stuck at grammars. I understand the concept of grammars but for whatever reason can't go from taking rules and writing a grammar out with it.…
Should that grammar be: Expr = "A" | "(" Expr* ")" | "" so that (()) is s a valid match? Because then Expr can be an empty string also?
Every single time I try to do an online Compilers class, my brain gets stuck at grammars. I understand the concept of grammars but for whatever reason can't go from taking rules and writing a grammar out with it.…