Better HN
topnewbestaskshowjobs
Log inSign up

panda_4

6 karma · joined Jul 11, 2019 (7y ago) · 2 submissions

Submissions

comment 7y ago · link · parent

Should that grammar be:

    Expr = "A" | "(" Expr* ")" | ""
so that (()) is s a valid match? Because then Expr can be an empty string also?

comment 7y ago · link · parent

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.

Probably will have to do an in classroom course for it?