![]() |
"Son of" Incorrect Line numbers - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15) +---- Thread: "Son of" Incorrect Line numbers (/showthread.php?tid=191) |
"Son of" Incorrect Line numbers - britlion - 03-23-2010 There *is* in fact a line number bug. It's in the inline assembly. Code: asm If you try to compile that, you'll be pointed at line 1 for errors, when in fact it's in line 19. Over a reasonably large program, with includes and lots of documentation, the place you can be told "Unexpected Token" can be a very very long way away from the real number. Apparently comments aren't counted as lines for that error - I'm guessing they are pre-parsed out by that point. Sorry if this isn't going to be trivial to solve! |