March 06, 2021, 05:33:27 AM

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

Offline round157

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

Re: micro(A) Interpreter
« Reply #61 on: July 27, 2020, 03:29:02 PM »
A

Offline Aurel

Re: micro(A) Interpreter
« Reply #62 on: July 29, 2020, 02:53:34 PM »
H

Offline Aurel

Re: micro(A) Interpreter
« Reply #63 on: August 12, 2020, 09:27:57 PM »
-

Offline Aurel

Re: micro(A) Interpreter
« Reply #64 on: August 12, 2020, 10:24:25 PM »
-

Offline bplus

Re: micro(A) Interpreter
« Reply #65 on: August 13, 2020, 05:53:11 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


For the record here is what my SmallBASIC version looks like:
Code: [Select]
'Sier Carpet v3.bas SmallBASIC 0.12.2 [B+=MGA] 2016-02-13

sq=512
s=2
stepper=2*s
start=1
lc=0
label doloop
  for x=start to sq step stepper
    for y=start to sq step stepper
      rect x,y,x+s,y+s,rgb(0,lc*15+128,0) filled
    next
  next
  start=start+s
  s=2*s
  stepper=2*stepper
  lc=lc+1
if stepper<=sq then goto doloop
pause 'for snapshot


So Aurel might mention he has modified my code beyond recognition or just left off the title label at top as it really no longer applies.

Offline Aurel

Re: micro(A) Interpreter
« Reply #66 on: August 13, 2020, 08:58:23 PM »
-

Offline bplus

Re: micro(A) Interpreter
« Reply #67 on: August 13, 2020, 09:14:12 PM »
I modify your code because if you don't see I don't have for/loop in microA..
also if i replace it with while loop and i get different result ...
it would be great if you have version with while loop in smallBasic or qb64

..or maybe i cannot because i see now that your rectangle is filled type and mine is not?
any suggestion mister MGA ????

Just use a bunch of lines to fill in the box.

Heck I could fill a box with my 100 line interpreter and it had just one graphics command Ray(x, y, angle, distance). ;-))




Offline Aurel

Re: micro(A) Interpreter
« Reply #68 on: August 14, 2020, 10:06:08 AM »
[

Offline Aurel

Re: micro(A) Interpreter
« Reply #69 on: August 14, 2020, 09:39:08 PM »
.


Offline round157

Re: micro(A) Interpreter
« Reply #70 on: August 14, 2020, 11:19:20 PM »
The Worklogs sub-forum may be more suitable for this thread. It may get other people's attention more easily there. 

Offline Aurel

Re: micro(A) Interpreter
« Reply #71 on: August 16, 2020, 09:06:22 AM »
t

Offline Aurel

Re: micro(A) Interpreter
« Reply #72 on: August 16, 2020, 07:06:53 PM »
H

Offline round157

Re: micro(A) Interpreter
« Reply #73 on: September 03, 2020, 10:07:06 AM »
Here is finally version of AurelEdit which we can use with micro(A) Interpreter



May I ask a question? I have a version of your editor for SmallBASIC. I have a version of your editor for Oxygen Basic as well. Can you make a version of your editor for this language? Thanks first.
http://naalaa.com/


Offline Aurel

Re: micro(A) Interpreter
« Reply #74 on: September 03, 2020, 07:52:01 PM »
Y

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal