Page 1 of 1

D-Lib 2.0 script language

Posted: Mon Feb 12, 2007 2:58 pm
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

Posted: Mon Feb 12, 2007 5:51 pm
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 :)

Posted: Mon Feb 12, 2007 6:25 pm
by theNerd
Works well!

Posted: Mon Feb 12, 2007 7:13 pm
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

Posted: Mon Feb 12, 2007 7:34 pm
by Chrono Syndrome
2Mischa:
Where the Help/Manual ?!?!?! :evil:

Posted: Mon Feb 12, 2007 8:16 pm
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

Posted: Mon Feb 12, 2007 9:07 pm
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. :)

Posted: Tue Feb 13, 2007 9:14 am
by Chrono Syndrome
2Mischa:
Ouch... Sorry zen, I simply didn't notice...

Posted: Thu Feb 15, 2007 1:49 am
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

Posted: Sun Feb 18, 2007 12:09 am
by Mischa
Some little changes done.
Now DLib.dll can catch *.dcf files directly from memory.

Regards,
Mischa

Posted: Wed Mar 21, 2007 7:07 pm
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

Posted: Thu Mar 22, 2007 11:01 am
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

Posted: Mon Apr 02, 2007 1:28 am
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.

Posted: Wed Apr 04, 2007 1:45 pm
by Mischa
:( What happend with TronDoc ??

Posted: Wed Apr 04, 2007 1:53 pm
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.