D-Lib 2.0 script language

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

D-Lib 2.0 script language

Post by Mischa »

Hi!

Here comes D-Lib 2.0 .beta.

Whats new:

D-Lib was completly rewritten

-Math operators * + - /
-And + Or operators for If and While
-No limitations of variables (only memory limit)
-Floats now integrated
-Full recursive procedures
-Local dynamic arrays
-Data sections
-Full compilate integration of dlls
-Window callback
-Native message handling for nearly all window controls
-Variable declaration nearly on the fly
-Now userlibs and compilation have same format
-Multi line commands (Merge lines with the ~ sign)
-Better syntax
-and more...

http://www.thinkrelative.de/dlib.zip

Help file will coming soon... ;)

Please test the examples. Thank you!

Regards,
Mischa
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

A couple of questions....What do these mean?

Full compilate integration of dlls
Now userlibs and compilation have same format

And....does it do boolean expressions and calculations?

Thank you very much for the library :)
theNerd
Enthusiast
Enthusiast
Posts: 131
Joined: Sun Mar 20, 2005 11:43 pm

Post by theNerd »

Works well!
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

In the previous version of D-Lib userlibs were only a kind of
'includes', or crypted includes.

In this version you can real compile to so called 'userlibs'.
You can also say a userlib is a library of precompiled
functions. That speed up compiling a bit.

'Full compilate integration of dlls'
Sorry, bad english. :oops:

Ok. The base of D-Lib is to be an interface, or frontend for Dlls/APIs.
If you want to use a dll, the runtime of D-Lib will need it, too.
You need the executable and the dll. Now you can direct integrate
any dll (but not API-Libs, makes no sence) when you compile.
At runtime the dll will be loaded direct from memory.
You can also integrate dlls in userlibs.


'And....does it do boolean expressions and calculations?'
For example?

D-Lib can be expanded by integrating userlibs and standard dlls.

Regards,
Mischa
Chrono Syndrome
Enthusiast
Enthusiast
Posts: 169
Joined: Thu Oct 05, 2006 6:44 am
Contact:

Post by Chrono Syndrome »

2Mischa:
Where the Help/Manual ?!?!?! :evil:
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Mischa wrote:
Help file will coming soon... Wink

Please test the examples. Thank you!
:wink:

This version is very fresh.
Help file will need a few days.

Regards,
Mischa
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

@Mischa,

boolean expression evaluation and calculations like this for example:

Code: Select all

If (Define.l ErrorCode = FunctionWithErrorReturn()) 
   Debug ErrorCode 
EndIf

or...

from C++:
BOOL enabled = FALSE; 
result = SUCCEEDED(::SomeFunction(&enabled)) && enabled;

the 'SomeFunction(&enabled)) && enabled part'

and IIF - I know you can do this with a macro but it would be neat to just go IIF without having to put a macro in.
Can the userlibs, user compiled from D-Lib be used directly in PureBasic?

Don't worry about the english, my native language is english and sometimes I don't even get it right. :)
Chrono Syndrome
Enthusiast
Enthusiast
Posts: 169
Joined: Thu Oct 05, 2006 6:44 am
Contact:

Post by Chrono Syndrome »

2Mischa:
Ouch... Sorry zen, I simply didn't notice...
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Ok! Today i've convert the Drun.exe to Drun.dll.
Now you can start compiled scripts via Dll-Call.
A little PB/DLib communication example is included.

Load down again, please..


@SFSxOI ???

I'm a small coder with a small script language and..a small brain.
What does this mean?

Something like this?
(D-Lib syntax)

Code: Select all

ErrorCode.l = FunctionWithTooManyErrorReturn()
If ErrorCode
  DebugV(ErrorCode)
Endif
Regards,
Mischa
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Some little changes done.
Now DLib.dll can catch *.dcf files directly from memory.

Regards,
Mischa
kochon
New User
New User
Posts: 8
Joined: Mon May 08, 2006 11:24 am
Location: France

Post by kochon »

Hi!

Mischa, DLib2 seems to be very simple and usefull.
Have had a look Years later to the first DLib but this one is definitively better.

Hope you're still working on an English doc cause without it, your great language will surely loose a lot of users.

köchOn
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

Hi!

I reconditioned the last few weeks a house and now moved. Starting from next week I write the help-docs to end.

Sorry for the delay..

..and Thanks for the praises.

Regards,
Mischa
Brice Manuel

Post by Brice Manuel »

It is sad that one of your biggest fans (Joe aka TronDoc) didn't live to see version 2.0. I am sure he would have loved it.
User avatar
Mischa
Enthusiast
Enthusiast
Posts: 115
Joined: Fri Aug 15, 2003 7:43 pm

Post by Mischa »

:( What happend with TronDoc ??
Brice Manuel

Post by Brice Manuel »

He died of heart related issues somewhere around two years ago.

The last version of his program "The Wrap" was written in D-Lib and had a much smaller footprint than previous versions. I have the beta version, but I dont think the D-Lib version was ever released to the public.
Post Reply