May 31, 2020, 08:16:37 PM

Author Topic: o2Basic - micro(A) Interpreter  (Read 1677 times)


Offline round157

  • Sr. Member
  • ****
  • Posts: 348
Re: o2Basic - micro(A) Interpreter
« Reply #1 on: March 28, 2020, 11:52:16 PM »
more info on :
https://sites.google.com/site/aurelwwiz/aurelsoft

I am curious. A few questions about the interpreter. The name micro(A) is interesting. Is there any special meaning in micro(A)? Will this interpreter(micro(A)) use SDL(like SmallBASIC)? Is the strength of the interpreter in game development or application development? Thanks.




Offline MikeHart

  • Hero Member
  • *****
  • Posts: 654
  • Cerberus-X developer
    • Cerberus X
Re: o2Basic - micro(A) Interpreter
« Reply #2 on: March 29, 2020, 07:19:14 AM »
Another basic interpreter from you? Or is it the one you started ages ago?
O2basic is the name of an already existing language, right?

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: o2Basic - micro(A) Interpreter
« Reply #3 on: March 29, 2020, 07:48:02 AM »
Quote
Another basic interpreter from you? Or is it the one you started ages ago?
O2basic is the name of an already existing language, right?
Hi Mike
Yes it is another one from me , not old one (aurel basic).
softpedia link:
https://www.softpedia.com/get/Programming/Coding-languages-Compilers/Aurel-Basic.shtml
Well ..o2basic is not existing than is Oxygen Basic, o2basic mean that micro(A) is written in o2.

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: o2Basic - micro(A) Interpreter
« Reply #4 on: March 29, 2020, 08:05:20 AM »
Quote
I am curious. A few questions about the interpreter. The name micro(A) is interesting. Is there any special meaning in micro(A)? Will this interpreter(micro(A)) use SDL(like SmallBASIC)? Is the strength of the interpreter in game development or application development? Thanks.

Hi round157
No there is no special meaning with name.
No ,i will not have in plan to use SDL or any other external library just win api functions.
Hmm...i will add few graphic function that is sure but game development ..i don't think about that yet.
It is simply to early at the moment.
IF all goes well, i mean if speed of execution be high enough then i can think about adding sprite commmands
or similar for games..until then nothing.
( I already have finished sprite functions)

Offline round157

  • Sr. Member
  • ****
  • Posts: 348
Re: o2Basic - micro(A) Interpreter
« Reply #5 on: March 29, 2020, 11:19:18 AM »

No ,i will not have in plan to use SDL or any other external library

I remember a language called NaaLaa. The author wrote the graphic routines for software rendering.

Quote
Hmm...i will add few graphic function that is sure but game development ..i don't think about that yet.

A few graphic functions are enough. Allowing micro(A) users to make some little games can help the popularity of micro(A).

Quote
( I already have finished sprite functions)

Since micro(A) is the name of the interpreter and the language, I suggest that M should be used instead of m.

You are the developer of Micro(A). Add some information can promote. (You can look at the following picture.)

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: o2Basic - micro(A) Interpreter
« Reply #6 on: March 29, 2020, 02:49:04 PM »
Developer is one thing and author is another.
And NO ,neme will stay micro(A) ,as micro mean small and for other things i will see.

Offline round157

  • Sr. Member
  • ****
  • Posts: 348
Re: o2Basic - micro(A) Interpreter
« Reply #7 on: March 30, 2020, 08:38:48 AM »
Developer is one thing and author is another.
And NO ,neme will stay micro(A) ,as micro mean small and for other things i will see.

I still have a question. Many BASIC dialects are with nice logos. Have you designed a logo for micro(A)?

QB64


SmallBASIC


Just BASIC


AppGameKit Studio

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: o2Basic - micro(A) Interpreter
« Reply #8 on: March 30, 2020, 04:56:44 PM »
round157
Man ..it is really to early to think about that things, for example i just today fixed one stupid bug
in tokenizer, and tokenizer is just first part of interpreter.
At moment i am testing semantic analyzer which build variable table,subroutine stacks,,etc..etc
do you understand some of that stuff?
It is not just like that... ;)

Offline round157

  • Sr. Member
  • ****
  • Posts: 348
Re: o2Basic - micro(A) Interpreter
« Reply #9 on: March 31, 2020, 08:04:32 AM »

Man ..it is really to early to think about that things, for example i just today fixed one stupid bug
in tokenizer, and tokenizer is just first part of interpreter.
At moment i am testing semantic analyzer which build variable table,subroutine stacks,,etc..etc
do you understand some of that stuff?

Ha...interpreter looks complex. Thanks for your information.

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: o2Basic - micro(A) Interpreter
« Reply #10 on: March 31, 2020, 09:04:01 AM »
Well ,,yes it is complex,,if you are interested how look
peek here: https://aurelsoft.ucoz.com/forum/4-23-1
,and because this time i want to build it in a different way than two previous.
And hey i add home page in my profile  :)
So anyone who is interested may look there , On that site there is also a blog and forum
and anyone can made account and post on forum.

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: o2Basic - micro(A) Interpreter
« Reply #11 on: March 31, 2020, 03:33:24 PM »
round157
just that you can see how look one part wich check error in code like this:

varNum a,b,c,d
or maybe simplier to you:
float a,b,c,d

i need this:
Code: [Select]
Sub preScan() as int
'MsgBox "OK..." ,"Pre:SCAN"
int i , numOfTokens = nTokens ,lineNum=0 : nTokens=0 :varID=0     ' numofTokens as local/reset global nTokens
For i = 1 to numOfTokens

IF typList[i]=tkEOL:tokList[i]="EOL"::lineNum++:END IF  'check EndOfLine

IF typList[i] = tkIDENT
           If ucase(tokList[i]) = kwList[1]: typList[i] = tkFLOAT  'if varNUM ...........................
              if typList[i+1] <> tkIDENT 'check err
                 MsgBox "Missing variable after VARNUM! line: " + str(lineNum),"ERROR": return 0
else
              i=i+1 ' next token
               While typList[i] <> tkCOLON And typList[i] <> tkEOL  'store num variable
                  If typList[i] = tkIDENT : varID = varID + 1 : varList[i] = varID : varNum[varID] = 0
                     MsgBox "Variable name: " + tokList[i] ,"variable->Numeric"
                  End if
                i++
               Wend
     end if
          End if  ' endOf varNUM..........................................................................
         
END IF

Next i
return 1

End sub

Offline round157

  • Sr. Member
  • ****
  • Posts: 348
Re: o2Basic - micro(A) Interpreter
« Reply #12 on: April 01, 2020, 12:05:01 AM »
peek here: https://aurelsoft.ucoz.com/forum/4-23-1

Hi...I hope that micro(A) will be as successful as Cerberus-X.:) 

Quote
And hey i add home page in my profile  :)

Yes! Adding accurate information in your profile can let other members know the existence of micro(A).

Quote
just that you can see how look one part wich check error in code like this:

varNum a,b,c,d
or maybe simplier to you:
float a,b,c,d

Thanks for explaining. You are really good at interpreter(or language) development. :)

Offline Aurel

  • Full Member
  • ***
  • Posts: 151
    • AurelSoft
Re: o2Basic - micro(A) Interpreter
« Reply #13 on: April 01, 2020, 07:53:17 PM »
I try to be as good as I can    ;D ;D ;D

Offline round157

  • Sr. Member
  • ****
  • Posts: 348
Re: o2Basic - micro(A) Interpreter
« Reply #14 on: April 02, 2020, 11:38:22 AM »
I try to be as good as I can    ;D ;D ;D

If you don't have any idea of the logo, you can use this design. Yes, free of charge. I designed it today. (Of course you can modify the design if you need.)

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal