Killer Grammar from Hell
Why can’t lecturers write good grammar? Or rather I’m inclined to believe that they don’t bother to. We’re taught that Context Free Grammars (CFGs) should be written in an unambiguous manner but who writes grammar like this:
Expression ::= Expression Expression | ...
and all hell breaks loose. Probably cos the author doesn’t want to get into the nitty gritty details and throws everything into the water.
Ok so we listed down ambiguous statements and made assumptions and finally get a decent parse tree. Then now we’re thrown a totally cryptic sematic to the language. Who defines a semantic in another semantic which we don’t even know? It’s like translating French into German but you don’t even know both.
This assignment is turning into a nightmare. It’s not that’s it’s a hard assignment, it’s just that no clear instructions are given.
Trackbacks
Trackback URL: http://waikay.net/2005/03/killer-grammar-from-hell/trackback
Comments
No comments yet.
| « Dumping Ground | Back to Main | The Good Samaritan » |







