Can the problem be solved during context-sensitive


Sometimes, the compiler writer can move an issue across the boundary between context-free and context-sensitive analysis. For example, we have discussed the classic ambiguity that arises between function invocation and array references in Fortran 77 (and other languages). These constructs might be added to the classic expression grammar using the productions:

948_5ee39fa7-4994-4936-8200-124e0b827869.png

Unfortunately, the only difference between a function invocation and an array reference lies in how the ident is declared. In previous chapters, we have discussed using cooperation between the scanner and the parser to disambiguate these constructs. Can the problem be solved during context-sensitive analysis? Which solution is preferable?

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Can the problem be solved during context-sensitive
Reference No:- TGS01474908

Expected delivery within 24 Hours