-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect quoting of parameters #6
Comments
currently, I see no difference between some pseudocode (for me) const commandParamInfo={'controlmove':[9,{2:true, 3:true, 4:true, 5:true}]}
const [howManyParams,v2ParamObj] = commandParamInfo[lowerValidName]
//loop howManyParams
for (let whichParam = 1; whichParam <= howManyParams; whichParam++) {
if v2ParamObj[whichParam] {
//v2Expression
} else {
//v1Expression
if (whichParam === howManyParams) {
//literal comma = true
}
}
} is there a c++ parser ? :) so I can extract paramInfo from g_act, that'd be crazy, I'll just use regex |
Output variable parameters are basically a subset of the expression syntax, but output variables do not survive the transition from v1 to v2 without change. Some output variables become the return value, and the rest (for recent v2 alphas) need the |
@Lexikos, thank you for ArgIsVar
I got all these, but for example so I got all the filenames in https://github.com/Lexikos/AutoHotkey_L-Docs/tree/v2/docs/commands and this is what I got ahk_parser.js/ahk_language/command first param to func outputVar/in v2 commands Lines 1 to 22 in db0946f
I had to convert some |
ACT_ADD corresponds to EnvAdd and |
oh true, https://www.autohotkey.com/docs/commands/ADD.htm redirects me to |
For identifying which command parameters accept expressions by default, you may refer to g_act. For example:
This indicates the 2nd, 3rd, 4th and 5th parameter are expressions, with 0 just terminating the list.
For identifying which parameters are output variables, you may refer to ArgIsVar. The "heuristic" for translating output vars is described in v2-changes:
The text was updated successfully, but these errors were encountered: