Write the EBNF description for C float
literal
Rewrite the BNF of Example 3.4 (shown below) to give +
precedence over * and force
+ to be right-associative.
Rewrite the BNF of Example 3.4 to add the ++ and -- unary operators of Java.
Using the grammar of Example 3.2 (show below), show a parse tree and a leftmost derivation for each of the following statements:
<assign> → <id> = <expr>
<id> → A | B | C
<expr> → <expr> + <expr>
| <expr>*<expr>
| (<expr>)
| <id>
<assign> → <id> = <expr>
<id> → A | B | C
<expr> → <id> + <expr>
| <id> * <expr>
| (<expr>)
| <id>