Syntax Check Utility
Posted: 03 Mar 2016, 22:17
I've made a small executable utility in Lazarus, a free Delphi clone, to check some syntax issues:
It is a small GUI application that lets you interactively select the name of a .ahk file, which can be stored wholly or partly in an .ini file. It generates all messages at once, allowing them to save in the Clipboard.
1) It shows lines using "=" for assignment instead of ": =". AHK accept both, but I use just ":=" for assignment.
2) It shows lines using "IF" command without parentheses limiting the whole expression, even though in some cases the AHK allows.
3) It shows lines using where the programmer uses a command on the same line than "IF". AHK does not accept it, but it does not show the error.
4) It shows lines with "LOOP" command that is not followed by digit, "%" or '{'. It not accepts ","
If anyone is interested, Let me know.
It is a small GUI application that lets you interactively select the name of a .ahk file, which can be stored wholly or partly in an .ini file. It generates all messages at once, allowing them to save in the Clipboard.
1) It shows lines using "=" for assignment instead of ": =". AHK accept both, but I use just ":=" for assignment.
2) It shows lines using "IF" command without parentheses limiting the whole expression, even though in some cases the AHK allows.
3) It shows lines using where the programmer uses a command on the same line than "IF". AHK does not accept it, but it does not show the error.
4) It shows lines with "LOOP" command that is not followed by digit, "%" or '{'. It not accepts ","
If anyone is interested, Let me know.