Note: Questions or discussion should be directed to the class newsgroup.
1) Evaluate your favorite language, based on the criteria given in class.
2) Given the following grammar:
<assign>
--> <id> := <expr>
<id>
--> A | B | C
<expr>
--> <expr> + <expr>
| <expr> * <expr>
| (<expr>)
| <id>
show a parse tree and a leftmost derivation for each of these statements.
ident := vargive an operational semantic definition of the following language constructs:
ident := ident + integer
ident := ident - integer
goto label
if var relop var goto label (where relop is =, <>, <, <=, >, or >= )