PDA

View Full Version : ABasic v1.1 test



zlatkoAB
04-05-2008, 07:48
Hi all...
I'm just release new testing version of
Aurel basic interpreter on net.
So if you interested-
You can find him on:
http://aurelw.wiz.googlepages.com/aurelsoft
bye...

ErosOlmi
05-05-2008, 10:36
Good luck for this adventure!

But pay attention: passion for languages development can stole some days of life ;D

zlatkoAB
05-05-2008, 11:10
Thanks Eros!
I know this uh... ;)

zlatkoAB
19-05-2008, 12:06
Hi all...
Latest testing release AB1173 you can see on:
http://aurelbasic.8tt.org
on forum in kategorie download or
if server dont respond properly on:
http://aurelw.wiz.googlepages.com/aurelsoft
thanks and all best
zlatko...

zlatkoAB
06-10-2008, 12:53
Hi people....
I have one question for all.
Is there any good parser written in basic ,i think that mine is ok but
i mean that is slow.
Maby some written in thinBasic or in Power Basic.
thanks advance
zlatko

ErosOlmi
06-10-2008, 13:19
zlatko,

some time ago I've released a PowerBasic source code of an interpreter called BINT32
Download from http://www.thinbasic.com/index.php?option=com_jdownloads&Itemid=95&task=viewcategory&catid=6

It is developed as DLL embeddable in any EXE but can be transformed into an executable quite easily.
It is quite basic but can do many nice things.

You can use as you prefer but I will not do any support (sorry) due to lack of time.

Ciao
Eros

zlatkoAB
06-10-2008, 13:31
Hi eros of course i know for your BINT32
but i dont understand him quiet well.
Maby someone knows how make ordinary text parser writte in
thinBasic.That would be great.
I mean some like this:
text line:
txtline=" This is a parsed text " ,then perse this line to 5 separated
strings like:
a$="This"
b$="is"
c$="a"
d$="parsed"
e$="text"
Is there a way to do this in thin basic?

Michael Clease
06-10-2008, 14:31
easier to fill an array, try this.



' Simple Parse test.

DIm txtline AS STRING = " This is a parsed text "
DIm Tokens() AS STRING
DIm sMsg AS STRING
DIM TokensNum AS LONG
DIM N AS LONG

TokensNum = PARSE(txtline, Tokens, " ")

sMsg = "Your String : " + CHR$(34) + txtline + chr$(34) + $CRLF(2)
sMsg += "Number of Tokens : " & UBound(Tokens(1)) + $CRLF(2)

For n = 1 to UBOUND(Tokens)
sMsg += "Token " + n + " = " + Tokens(n) + $CRLF
Next

sMsg += $CRLF + "and this time skipping blanks" + $CRLF(2)

For n = 1 to UBOUND(Tokens)
IF Tokens(n) <> "" THEN sMsg += "Token " + n + " = " + Tokens(n) + $CRLF
Next

MSGBOX 0, sMsg

ErosOlmi
06-10-2008, 14:44
zlatko,

BINT32 implements the well known descendant parser described by Herbert Schildt in all of his books.
The technique is called "recursive descend parser"

BINT32 and subsequently thinBasic started from the above info I took in some Herbert Schildt C books I have. I took some initial coding from http://www.powerbasic.com/support/pbforums/showthread.php?t=23294&highlight=Schildt where James klutho ported some Schildt code into Power Basic.

Maybe the above can give you more info and a go to start.

Ciao
Eros

ErosOlmi
06-10-2008, 14:50
Another important aspect is the language you choose to implement you parser (and subsequent language)
I suggest to go with a power language like Power Basic, FreeBasic or C where you can get all the power of pointers.

If you need speed (and an interpreter always need speed) you will absolutely need a language very strong on pointers.
Every time you move memory (like a simple MID$, LEFT$ or PEEK/POKE) you are loosing speed. You have always to think in such a way you do not move data but just inspect it. Inspecting data is mainly done in the processor while moving memory is done by different hardware other than just the processor and this takes time.

Ciao
Eros

ErosOlmi
06-10-2008, 14:56
I mean some like this:
text line:
txtline=" This is a parsed text " ,then perse this line to 5 separated
strings like:
a$="This"
b$="is"
c$="a"
d$="parsed"
e$="text"
Is there a way to do this in thin basic?


The above (or even more complex) as Micheal suggested can be achieved in thinBasic with just one command: PARSE (http://www.thinbasic.com/public/products/thinBasic/help/html/parse.htm).
But because you have posted your request in your "ABasic v1.1 test" thread, I think you are talking about a more complex situation that is a language tokenizer plus parser.
Hope my 2 previous posts can give you some light.

Ciao
Eros

zlatkoAB
06-10-2008, 20:15
Thank you very much Eros!You are allways ready to help :)
Yes i need this for my interpreter but like you know i made him in
Creative Basic and he is not very well with pointers.He support
pointers but dont support array of pointers(Emergance support).
However i will try writte version for thinBasic. ;D
And of course thanks Michael i try.
Thanks
zlatko

zlatkoAB
03-11-2008, 16:09
I just release new version of Aurel Basic v 11 build 81.

WHAT IS NEW IN Aurel Basic v1.1 build 81d

Added commands GOSUB ,SUB ,RETURN (wich are classic basic commands).
Added more font types with font size values.
Improoved main parser.
Improoved LOOP/ENDLOOP block.
You can now put loop block inside SUBB buttons subroutine
and inside classic SUB subroutine.
Help text replaced with compiled html file.

Supported font types:
(fontnames)
Arial
Fixed
System
CourierNew
TimesNewRoman
Georgia
Impact
Microsoft
Tahoma
Verdana

download:
http://aurelw.wiz.googlepages.com/aurelsoft
Next version will be with exe packer...

Petr Schreiber
03-11-2008, 17:30
Hi Zlatko,

I am happy you continue with your project!
I can see some nice improvements from last version :)

But there are few formal things I do not like:

When I create New file, add some code, click Save ... and I cannot run it. I have to Open it and then it works. I am sorry but I cannot get used to this behavior
It would be much more clear to put one topic for each command in help file - it is easier to search for syntax and makes better image about how much language can do - long text as is now does not "invite" to read because it is too long
Help file has no title


Take this suggestions as friendly advice please, I am happy you are working on your project and wish you good luck with it.


Petr

zlatkoAB
08-12-2008, 00:05
Hi Petr...
Thanks Petr on your advice i know that open/save is little messed.
I will change this thing.
Of course you are right about help file it is realy to long.
But this help thing makes me nervous(i dont like write help) ::)
thanks again...
regards
zlatko

John Spikowski
08-12-2008, 10:58
Eros,

I'm a bit confused why ABasic is being promoted on the thinBASIC forum. ??? This Basic is well represented on Coding Monkey's along with the compiler it was written in.

If your policy has changed, maybe you could setup a ScriptBasic board here as well.

John

Michael Hartlef
08-12-2008, 14:54
John, where do you see an ABasic board here? I see only topics in this board.

ErosOlmi
08-12-2008, 15:38
We are very open and we allow discussions about any matters dealing with programming. As you know we have great passion in programming and scripting languages in particular.
zlatko is the author of ABasic language. He made a simple, light, gentle post in "thinBasic Community > General community > General > Other programming languages > Scripting" forum. That's all.

The policy here is that there is no policy unless I do not like something.
If posts are placed into the correct forum and "used language" is polite, correct and respectful of all, I do not see any problem.

If you want to make a post about scriptbasic, I do not see any problem unless the above is not respected.

Ciao
Eros

Petr Schreiber
08-12-2008, 20:43
Hi Zlatko,

yes, writing documentation can be little annoying, but it is half of the success of the final product - users not knowing "how" cannot use the tool up to its full potential.
This is the thing I keep in mind when I am writing the docs - it is stuff which something will appreciate ( I am naive, I know :D )- without it there is zero chance user will spend more than 5 minutes with the product.

I do help in HTML Help Maker from Microsoft (free), much better tool is Help'n'Doc (http://www.ibe-software.com/products/software/helpndoc/). It has free version as well, editing is not HTML torture but WYSIWYG.

Good luck with ABasic, thanks for considering my suggestions, I look forward to improved version :)


Petr




Hi Petr...
Thanks Petr on your advice i know that open/save is little messed.
I will change this thing.
Of course you are right about help file it is realy to long.
But this help thing makes me nervous(i dont like write help) ::)
thanks again...
regards
zlatko

zlatkoAB
08-12-2008, 21:07
Hi Petr ...
I agree with you that is help very important part of each software.
Currently i made help in Vistanita chm wich is very good html -
compiler/decompiler.
And just for information i made changes like you suggest me.
Now user only must save code and run button will be enabled.
all best...

Zlatko

Petr Schreiber
08-12-2008, 21:17
Thanks a lot,

that sounds good :)


Petr

John Spikowski
08-12-2008, 23:13
If you want to make a post about scriptbasic, I do not see any problem unless the above is not respected.


I have been known to post a BTW about ScriptBasic here on thinBASIC but I understand the primary focus of this forum to promote your offering and it's user based extensions.

Why isn't ABasic using the Coding Monkey's board which was setup for emerging Basic languages looking for feedback?

I tried to help the guy out on All Basic and setup a board for him. He just posted off the wall stuff and abused other member offerings till I had enough of it and ban him from the site. He rejoined the All Basic again as an alias and started trashing ScriptBasic in retaliation.

He also started a thread on Programmer's Haven attacking me for no reason. The Coding Monkey's admin has warned him multiple times about his abuse and nasty attitude.

Why would anyone help him if he is going to trash anyone trying to give him a hand?


John

ErosOlmi
08-12-2008, 23:29
I do not know. Maybe the positive and helpful atmosphere of thinBasic is pervasive ;)
Anyhow, be sure I will not let anyone be abusive or offensive here. At the same time, there will be full freedom to talk about computer programming.

Michael Hartlef
09-12-2008, 08:35
Well John, what has Coding Monkeys to do with this board. NOTHING! Zlatko is actually a very welcomed member here!

Why do you always try to bring other people up against someone? Is it envy? Is it because not many people care about another project you took over? Your behaviour is actually no surprise to me after reading about you and your actions on the internet. Stop posting crap about people here. You are at the very wrong place for this!

John Spikowski
09-12-2008, 09:02
Crap?

Maybe you didn't take to time to read my post, visit Programmers Haven or review the zlatkoAB's posts on Coding Monkey's board.

I was the one attacked not the other way around.

Why don't you stand up for the victim for a change instead of protecting the jerks? Remember the 14 your kid you were falling all over that ended up getting ban off Coding Monkey's for all the B.S.?

I'm not the only one this guy has attacked, so back off.


John

ErosOlmi
09-12-2008, 09:09
Ok, let's make in this way: we cannot repeat in every forum the same old story. Every-one has his own reasons and story in other forums to which I do not care. I just look at the behave a person has in this forum.

Critics on software (better if positive and constructive) are welcome. They are a good way to improve software quality if analyzed with attention by programmers. A programmer not listening to the user base is creating (in the best case) his own software.
Personal attacks are not welcome in whatever direction they come or go.

So, let's try again in another thread, maybe we will have more luck. This thread is now closed.
Please open another one if willing to talk about ABasic, ScriptBasic or whatever thread about programming.

Ciao
Eros