Developers Jos Posted November 29, 2004 Developers Share Posted November 29, 2004 Updated to v1.14: Uses old AutoIt3 registry path if new does not exist.Cheers.<{POST_SNAPBACK}>Thats quick! will take this one and put it into the installer..Thanks SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
tylo Posted November 30, 2004 Author Share Posted November 30, 2004 v1.15 - Accept macro as default value for optional parameters - Updated Au3Check.def to latest (stole it from JdeB's Scite dist) blub Link to comment Share on other sites More sharing options...
Developers Jos Posted November 30, 2004 Developers Share Posted November 30, 2004 stole it from JdeB's Scite dist<{POST_SNAPBACK}>anytime.... tnx for the update... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Valik Posted December 2, 2004 Share Posted December 2, 2004 tylo, got a silly little bug for you: Func Test($a = -1) EndFunc Au3Check that, please. You'll see what I mean. Link to comment Share on other sites More sharing options...
tylo Posted December 3, 2004 Author Share Posted December 3, 2004 Fixed. + Updated .def file with DllOpen()/DllClose(). blub Link to comment Share on other sites More sharing options...
Valik Posted December 3, 2004 Share Posted December 3, 2004 (edited) Fixed. + Updated .def file with DllOpen()/DllClose().<{POST_SNAPBACK}>Thanks.Edit: Hmm, I keep getting 1.13 every time I download. I've tried forcing a new download as well as a different brower. Anybody else getting an older version, too? Edited December 3, 2004 by Valik Link to comment Share on other sites More sharing options...
SlimShady Posted December 3, 2004 Share Posted December 3, 2004 I just downloaded the zip file. And I see that the date of last modifications of the files: - executable: november 29th - definition file: october 10th - text file: november 29th I think Tylo uploaded an older version. Link to comment Share on other sites More sharing options...
tylo Posted December 5, 2004 Author Share Posted December 5, 2004 Oops. Sorry folks. Should be OK now. blub Link to comment Share on other sites More sharing options...
Valik Posted January 4, 2005 Share Posted January 4, 2005 I have some requests, tylo.Support for the new Const keyword.If assigning to a variable defined as Const, report an error.A new mode (Either default, or activated via a command line switch) which basically does what Opt("MustDeclareVars") does. Example: Opt("MustDeclareVars", 1) MyFunc() Func MyFunc() $a = "a" If $a = "a" Then MsgBox(4096, "", "Good") EndFunc Au3Check happily reports this as being valid code, however, because the variable must be declared, AutoIt doesn't run it. This leads to subtle errors when the Local/Global keyword is accidentally forgotten. Link to comment Share on other sites More sharing options...
Valik Posted January 10, 2005 Share Posted January 10, 2005 I must say, I do not like yacc/flex. I tried to hack together something just to get Const ignored so scripts containing it wouldn't return errors on it, but I can't even manage to get that simple task done. I just looked at the code for AutoIt's parser and was able to figure out what was going on, I can't seem to make heads or tails of this yacc stuff. I think I prefer parsers written in pure C++ to this. Anybody else able to take a crack at this thing until tylo gets us an official version supporting Const? Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 10, 2005 Administrators Share Posted January 10, 2005 I must say, I do not like yacc/flex. I tried to hack together something just to get Const ignored so scripts containing it wouldn't return errors on it, but I can't even manage to get that simple task done. I just looked at the code for AutoIt's parser and was able to figure out what was going on, I can't seem to make heads or tails of this yacc stuff. I think I prefer parsers written in pure C++ to this.Anybody else able to take a crack at this thing until tylo gets us an official version supporting Const?I think that's because yacc does it properly and AutoIt uses something I pulled out of my ass after reading a couple of internet articles on parsing (about which I have no clue)... Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Valik Posted January 10, 2005 Share Posted January 10, 2005 I think that's because yacc does it properly and AutoIt uses something I pulled out of my ass after reading a couple of internet articles on parsing (about which I have no clue)...<{POST_SNAPBACK}>Doesn't matter to me if its done "properly". I just want to be able to modify it to suit my needs should I have reason to. I can do that with AutoIt's parser, but not with yacc. Link to comment Share on other sites More sharing options...
tylo Posted January 13, 2005 Author Share Posted January 13, 2005 I have some requests, tylo.Support for the new Const keyword.If assigning to a variable defined as Const, report an error. A new mode (Either default, or activated via a command line switch) which basically does what Opt("MustDeclareVars") does. Example: Opt("MustDeclareVars", 1) MyFunc() Func MyFunc() $a = "a" If $a = "a" Then MsgBox(4096, "", "Good") EndFunc Au3Check happily reports this as being valid code, however, because the variable must be declared, AutoIt doesn't run it. This leads to subtle errors when the Local/Global keyword is accidentally forgotten.<{POST_SNAPBACK}>Updated with au3check v1.17. The two first points are done. The third, I may do later. Didn't update the .def file (Note: now renamed to .dat) - must leave some work for you all Cheers. blub Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2005 Developers Share Posted January 13, 2005 Updated with au3check v1.17.The two first points are done. The third, I may do later.Didn't update the .def file (Note: now renamed to .dat) - must leave some work for you all Cheers.<{POST_SNAPBACK}>ahhh its "Lets rename something day" thanks for the update... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 13, 2005 Administrators Share Posted January 13, 2005 ahhh its "Lets rename something day" He he. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Valik Posted January 13, 2005 Share Posted January 13, 2005 Updated with au3check v1.17.The two first points are done. The third, I may do later.Didn't update the .def file (Note: now renamed to .dat) - must leave some work for you all Cheers.<{POST_SNAPBACK}>Meh, I have a script that generates the .def file, my work will consist of changing a file extension in an INI file.Thanks for the update, though! Link to comment Share on other sites More sharing options...
tylo Posted January 14, 2005 Author Share Posted January 14, 2005 (edited) New au3check 1.18 // updated - Added check for already defined non-const var when declaring consts. - Changed a misleading error message for consts.I must say, I do not like yacc/flex. I tried to hack together something just to get Const ignored so scripts containing it wouldn't return errors on it, but I can't even manage to get that simple task done. I just looked at the code for AutoIt's parser and was able to figure out what was going on, I can't seem to make heads or tails of this yacc stuff. I think I prefer parsers written in pure C++ to this.<{POST_SNAPBACK}>Well, if you know the tool (yacc), it's not so bad. Here's the essence oo what I added to the yacc file:declaration_statement : specifier declarator_list '\n' /* normal vars */ | const_specifier const_declarator_list '\n' /* const vars */ ; const_specifier : K_Const { ... } | K_Dim K_Const { ... } | K_Local K_Const { ... } | K_Global K_Const { ... } ; const_declarator : VARIABLE '=' exp[b][/b]ression { /* add new const var */ } ; const_declarator_list : const_declarator | const_declarator_list ',' const_declarator ;I also check that any assignments or new var declarations are not using the same name as a previously declared Const var (in the correct scope), so I needed to add some "normal" C++ code as well.Beware though, that the following code will be accepted by au3check, while not AutoIt:func f() $MAXX = 0 ; OK - not yet seen by au3check: assume local var endfunc Const $MAXX = 10 f()Make sure to declare globals above usage (in file scope):Const $MAXX = 10 func f() $MAXX = 0 ; au3check reports error: previously declared as Const endfunc f()/ADD:New in v1.18: if $MAXX is declared as Global in f(), it will be reported illegal by au3check: (AutoIt will report error in non-Const declaration, whereas au3check in Const delcaration). Puh, this is getting complicated...func f() Global $MAXX = 0; OK - not yet seen by au3check endfunc Const $MAXX = 10; ERROR by au3check - previously global non-const. f() Edited January 14, 2005 by tylo blub Link to comment Share on other sites More sharing options...
tylo Posted January 14, 2005 Author Share Posted January 14, 2005 v1.20 now. Think I got it right, finally. blub Link to comment Share on other sites More sharing options...
tylo Posted January 16, 2005 Author Share Posted January 16, 2005 And another Au3Check update: 1.21 : added: command line option -d, which checks as Opt("MustDeclareVars", 1). blub Link to comment Share on other sites More sharing options...
SlimShady Posted January 16, 2005 Share Posted January 16, 2005 Perfect! Thank you, tylo. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now