I don't know if this answers your question, but here is a practical example:
For example, in C the following:
x * y ;
can be interpreted either as the declaration of an identifier y of type pointer to x, or as an expression in which x is multiplied by y and the result is discarded. To choose between the two possible interpretations, a compiler must consult its symbol table to find out whether x has been declared as a typedef name that is visible at this point.
Ambiguous grammar - Wikipedia, the free encyclopedia



LinkBack URL
About LinkBacks







Reply With Quote


Bookmarks