Question: Modify Type Rule 6.5 to allow implicit char to i nt and i nt to float conversions. Modify the V function for expressions to implement
Add a put( ) statement to Clite, where put( ) takes an expression as an argument and writes the value of the expression to stdout. For this new statement:
(a) Define its EBNF and abstract syntax,
(b) Modify Type Rule 6.4 to define the necessary validity checks, and
(c) Modify the V function for statements to implement the type rules.
Step by Step Solution
There are 3 Steps involved in it
To modify Type Rule 65 to allow implicit char to int and int to float conversions and to add a put statement to Clite well need to go through several ... View full answer
Get step-by-step solutions from verified subject matter experts
