The little languages presented in section 29323 have


The little languages presented in Section 29.3.2.3 have ambiguous semantics. For example, in the location language, does "not host1 or host2" mean "not at host1 and not at host2" or "not at host1, or at host2"?

a. Rewrite the BNF of the location language to make the semantics reflect the second meaning (that is, the precedence of "not" is higher than that of "or"). Are the semantics unambiguous now? Why or why not?

b. Rewrite the BNF of the time language to make the semantics reflect the second meaning (that is, the precedence of "not" is higher than that of "or"). Are the semantics unambiguous now? Why or why not?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: The little languages presented in section 29323 have
Reference No:- TGS01712662

Expected delivery within 24 Hours