NAT · 2 marks · Syntax Directed Translation
GATE CS 2023 CS — Q60
Consider the syntax directed translation given by the following grammar and semantic rules. Here and are non-terminals. is the starting non-terminal, and
The value computed by the translation scheme for the input string
is ____________. (Rounded off to three decimal places)
#, 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, and .The value computed by the translation scheme for the input string
is ____________. (Rounded off to three decimal places)