Consider the following Context-Free Grammar:
B $\longrightarrow$ B 0
B $\longrightarrow$ B 1
B $\longrightarrow$ $\varepsilon$
Let the Syntax-Direction Definition goal be to translate a parse tree for a binary number into it's value. For example, the string 1 0 1 should translate to the binary value 5. Write SDD rules for each production to meet this goal.