tiger
tiger copied to clipboard
Bug in unTx function
I know this repo was finished a long time ago but as a person who is learning how to write a Tiger compiler, this is still a valuable resource. As I read your code, I double that the unNx function has an error.
I think the correct implementation for unNx with Cx should be something like this.
let val t = Temp.newlabel() in T.SEQ(genstm(t,t), T.LABEL t) end
Looking forward to hearing from you. xD