GATE 2023 Computer Science and Information Technology question: Consider the syntax directed translation given by the following grammar and semantic…
Consider the syntax directed translation given by the following grammar and semantic rules. Here , , and are non-terminals. is the starting non-terminal, and #, 0 and 1 are lexical tokens corresponding to input letters “#”, “0” and “1”, respectively. denotes the synthesized attribute (a numeric value) associated with a non-terminal . and denote occurrences of and on the right hand side of a production, respectively. For the tokens 0 and 1, 0 and 1.
The value computed by the translation scheme for the input string
10#011
is ____________. (Rounded off to three decimal places)
Show answer
Official answer: 2.374 to 2.376