hkveeranki / Decaf-Compiler

Compiler for Decaf Programming Language
http://decaf-compiler.hkveeranki.com/
MIT License
37 stars 8 forks source link

for loop #4

Closed kiranmayee18 closed 6 years ago

kiranmayee18 commented 6 years ago

For loop doesnt run from 0 to a variable (it throws an error and no IR is generated). However doing variable - 0 works. errorscreenshot

hkveeranki commented 6 years ago

Thanks for reporting. fixed in https://github.com/harry-7/Decaf-Compiler/commit/a84d10fcbeb504facb1f2f2a6747ebcf62bf947f