mB 5.0.3 Beta 4 Syntax check error.

Discuss about beta versions of mikroBasic
compiler.
Post Reply
Author
Message
MAN
Posts: 437
Joined: 11 Jan 2006 18:32
Location: Brasil

mB 5.0.3 Beta 4 Syntax check error.

#1 Post by MAN » 14 Sep 2007 04:17

Hi ZRistic;

By accident I get this syntax error when I compiled the program.
This error occur only if we put a key in the place of brackets on left side of index array with use of "IF" statement and maybe in another control flux of program. The program don't warn correctly, the line cursor goes for last line program+1 and the CPU of PC stay holds more than 80% of load.

Example code that generates error:

Code: Select all


Dim a, b as Byte[2]

main:
   if a{0] = 0 then
      b[0] = 0
   else
      b[0] = 1
   end if
end.

Messege window after to try to close the program.
Image

of course, this error window should be provoked by the syntax check.
Working with you, for you!
MAN

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: mB 5.0.3 Beta 4 Syntax check error.

#2 Post by zristic » 14 Sep 2007 08:17

Aha, a nasty one.
Thanks for reporting. We will fix it asap.

Post Reply

Return to “mikroBasic Beta testing”