Tucker, A., Noonan, R. (2007). Programming Languages: Principles and Paradigms. 2ed, New York, NY: McGraw-Hill.
ISBN: 9780072866094
Expand Type Rule 6.2 for Declarations so that it defines the requirement that the type of each variable be taken from a small set of available types, {float, int, bool, char}. Use the same rule style and abstract syntax for Declarations in this chapter.
Argue the Java method that implements the function V for Declarations is correct, in the sense that it covers all the cases that the Type Rule itself covers.
Modify Type Rule 6.5 to allow implicit char to int and int to float conversations.
Modify the V function for expressions to implement type rules.
Modify the type transformer class so that the implicit conversations of #3 are converted to explicit conversations.