Page 7 of 10

Re: New scripting engine - testers wanted!

Posted: Wed Feb 07, 2018 11:45 pm
by srod
HeX0R wrote:@Stephen:
You were right regarding memory blocks, it works flawlessly, seems I were drunk when I tested it (as usual) :)
I have the same problem! :wink:

@QuimV. If you run the qdMin test editor as per the instructions which come with the download package; you can load up any of the test scripts that sit in the minScript demos folder and start to have a good look at the script language etc.
You can also paste HexOR's code into the script-panel of qdMin and compile it and then test it via the execution-panel (just enter Test()).

Re: New scripting engine - testers wanted!

Posted: Thu Feb 08, 2018 7:37 am
by QuimV
@srod and @Hexor
:D Tank you so much.

Re: New scripting engine - testers wanted!

Posted: Thu Feb 08, 2018 3:17 pm
by srod
No problem.

I have now added static local variables for the next test version.

Re: New scripting engine - testers wanted!

Posted: Thu Feb 08, 2018 7:04 pm
by QuimV
:D :D Great!
VBscript does not have this functionality!

Re: New scripting engine - testers wanted!

Posted: Mon Feb 12, 2018 1:42 pm
by srod
Version 1.0.7 uploaded.

Comes with static variables, EnableExplicit/DisableExplicit compiler directives, file functions, a few more string functions and some bug fixes.

This has the potential to have introduced more bugs. :)

The manual is progressing nicely - if slowly!

See the first post for the download link.

Re: New scripting engine - testers wanted!

Posted: Mon Feb 12, 2018 6:49 pm
by QuimV
:D Great!
Question: Adding the new "static" type, does the scope of the variables change something?
Thanks

Re: New scripting engine - testers wanted!

Posted: Mon Feb 12, 2018 7:10 pm
by srod
Not sure what you mean because there is, prior to using DIM or STATIC, no scope to change.

STATIC can only be used inside a function or method and creates a persistent local variable. Module and script variables are already persistent and so STATIC does not apply to these variables.

Under the hood, STATIC simply creates a module variable whose internal name/ID is suitably 'mangled' and only accessible through the function/method in which it was created. Because of the naming convention used there can be no name clashes (bugs aside!)

Static variables remain persistent regardless of how many times you perform separate executions and remain so initialised until either the parent module is updated or the underlying code object is completely reset.

Re: New scripting engine - testers wanted!

Posted: Mon Feb 12, 2018 7:14 pm
by QuimV
:D @srod, your explanation is crystal clear.
Thanks.

Re: New scripting engine - testers wanted!

Posted: Mon Feb 12, 2018 7:57 pm
by QuimV
:oops: @srod:

When I run qdMin.pb I get the error "minScript failed to initialize correctly. Closing qdMin".
I run it in windows 7 32 bits and windows 10 32 bits.

Re: New scripting engine - testers wanted!

Posted: Mon Feb 12, 2018 8:56 pm
by srod
Removed.

Re: New scripting engine - testers wanted!

Posted: Mon Feb 12, 2018 9:24 pm
by srod
Okay, I suspect a problem with InitScintilla(). Have you renamed the x86 "scintilla.dll" file by any chance? Perhaps the x86 Purebasic\Compilers directory is not in your system path for some reason?

Try this. Delete the "Scintilla.dll" file from the qdMin folder (it is a 64-bit version).
Copy the 32-bit version of "scintilla.dll" from the x86 \Purebasic\Compilers folder. Copy it into the qdMin folder. Make sure it is named "scintilla.dll".

Now try running qdMin.

Re: New scripting engine - testers wanted!

Posted: Mon Feb 12, 2018 9:52 pm
by QuimV
:D Confirmed! It is the scintilla dll.
It works perfect now!

Re: New scripting engine - testers wanted!

Posted: Mon Feb 12, 2018 11:11 pm
by srod
Right. I will include copies of both the 32-bit and 64-bit versions of Scintilla and some suitable conditional compilation with the next versions. :)

Re: New scripting engine - testers wanted!

Posted: Tue Feb 13, 2018 11:03 am
by Kwai chang caine
Hello MASTER,

A new time, i test your jewel, and like the other time, that works !!! :D (it's already a miracle i can run it Image ) :shock:

But i'm ashamed ..... :oops:
The first time.... i have not really all understand (like usually you say to me, it's normal walk :mrgreen:), and i say to me : "The second time, it will probably be better" :idea: and today ...i have always not better understand than the first time :oops:
Your software is too strong for the little brain of your servant :oops:

1/ So ok, i load one of your example "File1.txt" 8) Because i always like all the works with files, since i'm young when i create my first file on TO7 :shock:
2/ I click on the compile button and i have the message all is good "Compilation successfull" 8)
3/ Always ok, i paste the function

Code: Select all

DumpTextFile("..\..\testers_PleaseRead.txt")
in the execution panel, and all the text appears in the "outputDebug panel" 8)

And now ?? what i must do ??

Create the EXE of your code and run it in the windows shell console with a script txt,

Code: Select all

C:\Temp\AmazingExeOfMasterSrod.exe  "C:\Script.txt"
with inside the Script.txt

Code: Select all

DumpTextFile("c:\Temp\AText.txt")
Or create the EXE of your code and run it in console with a direct shell line

Code: Select all

C:\Temp\AmazingExeOfMasterSrod.exe "DumpTextFile('c:\Temp\AText.txt')"
Or perhaps... found a bridge and jump, but obviously without elastic, for freed you one time for other of me ? :mrgreen:
Image
Sometime, i'm tired to always be the one who don't understand....even after ten years at talking with numerous masters of programming .....

Image

I do not get used to it :oops: :oops: :?

Re: New scripting engine - testers wanted!

Posted: Tue Feb 13, 2018 12:47 pm
by Fangbeast
Kwai chang caine, don't feel bad. I don't understand most of the coding you do so I am obviously far beneath you but I never worry about that.

I never understand srod either, his code is a million miles above me but with help, I always manage to get something done. Patience is the key word here and don't feel sorry for yourself, it doesn't help.