Below is a grammar for expressions involving operator $+$ and integer or floating-point operands. Floating-point numbers are distinguished by having a decimal point.
- $E\rightarrow E+T\mid T$
- $T\rightarrow num.num\mid num$
- Give an SDD to determine the type of each term $T$ and expression $E$.
- Extend your SDD of $(a)$ to translate expressions into postfix notation.Use the unary operator intToFloat to turn an integer into an equivalent float.