Be sure you put your name and e-mail in a comment at the beginning of the file. Without this you will not get any feedback.
In this homework you will do two kinds of things.
Start with the file HW5Template.html. It has all the boiler plate you will need.
"4385"::Int --> ([4,3,8,5],[0,1,2,3])::([Int],[Integer]) --> ([4,3,8,5],[0,1,2,3])::([Integer],[Integer]) --> ([5,8,3,4],[1,10,100,1000])::([Integer],[Integer]) --> [5,80,300,4000]::[Integer] --> 4385::Integer
Hint: Comment out the type of strToInteger and write it one step at a time. At each step test your code to see that it does what you expect. Then add another step. Replace the type when your through to check that you have indeed written a function with the right type.
Test your code.
Test your code.
Test your code.
data T5 = Add5 T5 T5 | Sub5 T5 T5 | Mult5 T5 T5 | Int5 Int | Var5 String | Assign5 String T5
Use the same constructor names in your function LangF, that are used in T5 above.