August 04, 2020, 12:44:18 PM

Author Topic: micro(A) Interpreter  (Read 3879 times)

Offline round157

  • Sr. Member
  • ****
  • Posts: 362
Re: micro(A) Interpreter
« Reply #60 on: July 27, 2020, 02:40:54 AM »
Yes it is normal because it is still in experimental stage ..
For example try use undefined variable and you will see...
of course i can remove it .
In fact this info should be part of let say simple debugger or something.
I am glad that work  :)

OKay. Good! I expect that micro(A) will be as good as CerberusX, SmallBASIC or BlitzMax ng.

Offline Aurel

  • Full Member
  • ***
  • Posts: 170
    • AurelSoft
Re: micro(A) Interpreter
« Reply #61 on: July 27, 2020, 03:29:02 PM »
Ahh..long way to that..
I am not even sure do i want that or better to say do i have time for all that things..
it is too early...

Offline Aurel

  • Full Member
  • ***
  • Posts: 170
    • AurelSoft
Re: micro(A) Interpreter
« Reply #62 on: July 29, 2020, 02:53:34 PM »
Here is a example of sierpinski carpet by MGA B+ from ssmall Basic
in micro(A):
Code: [Select]
'Sier Carpet v3.bas SmallBASIC 0.12.2 [B+=MGA] 2016-02-13
varnum sq,s,st,start,lc,r,g,b,x,y,rx,ry,w,h
sq=480 : s=2 :st=s+2 :start=1 :lc=0
wcolor 0,0,0

label doloop
'rx=1 : ry=1
x=1  : rx=x+s
   while x < sq
     y=1 :  ry=y+s
      while y < sq
       r=0:g=lc+128:b=0: fcolor r,g,b
      ' pset x,y
      rect x,y,rx,ry
      y=y+st*1
     wend
    ' swap
     x=x+st*1
 print 10,10,x
  wend

  s=2+st
  st=s*2
  lc=lc+1
rx=x : ry=y

if st < sq
 goto doloop
endif

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal