Forum
Error while compiling little program - 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: Error while compiling little program (/showthread.php?tid=920)



Error while compiling little program - maeloterkim - 02-24-2020

Hi  Smile 
This little program should work or am I missing something?

If I compile it gives error

Code:
'Begin program

const A as ubyte = 65
const a as ubyte = 97

print chr$ (A)
print chr$ (a)


'End program

i tried to compile with 1.9.9 version and 1.9.8 version and both have errors while compiling


RE: Error while compiling little program - boriel - 05-10-2020

Hey!!
I completely overlooked this post!!

You have found a bug in the compiler. I'll fix it ASAP and let you know, ok?


RE: Error while compiling little program - boriel - 05-10-2020

Okay, here is a fixed version:

http://www.boriel.com/files/zxb/zxbasic-1.10.0-beta5-win32.zip
http://www.boriel.com/files/zxb/zxbasic-1.10.0-beta5.tar.gz
http://www.boriel.com/files/zxb/zxbasic-1.10.0-beta5.zip


Hope it works! Rolleyes