nibblebits / PeachCompiler

A C compiler created for the how to create a C Compiler online course
GNU General Public License v2.0
83 stars 36 forks source link

For loop generation error when inside another function #20

Open fedi-nabli opened 8 months ago

fedi-nabli commented 8 months ago

I found a bug, when I place a for loop in another function besides main it thinks it needs a ; after the loop part and gives a segmentation fault.

the code: for (x = 0; x < 50; x += 1) { continue; }

dragonzapeducation commented 8 months ago

Thanks for the report Fedi, Kind Regards, Daniel