Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
14 votes
2 answers
2k views

What does scannerless parsing have to do with the "Dangling Else Problem"?

I do not understand this sentence from the Wikipedia article on the Dangling Else problem: [The Dangling Else problem] is a problem that often comes up in compiler construction, especially ...
user avatar
3 votes
1 answer
308 views

Showing a grammar is ambiguous

I have the following question taken from a compilers course exam: Show that the following grammar is ambiguous. S = XcY X = a Y = b | Z Z = bW W = d | ϵ I drew the following tree: Am I correct in ...
TomSelleck's user avatar