I'm debugging my compiler by comparing its output to the output of the supplied JackCompiler. I use the supplied JackCompiler to create the Main.vm file
(on Ubuntu, by running ./tools/JackCompiler.sh ../projects/11/ConvertToBin/Main.jack).
The Main.jack file has two different while loops, which get converted by the supplied JackCompiler into two while loops with the same labels:
"label WHILE_EXP0" shows up in line 20, and again in line 94.
"label WHILE_END0" shows up in line 74, and again in line 113.
This seems like too huge a bug to have remained undetected for so long, so maybe I'm missing something. Could someone verify if they get the same result? The Main.vm file produced by the supplied JackCompiler does not work as it should in the VMEmulator.