For example,
I still need to implement a lot of the NSIS functions such as MessageBox which require special treatment. For example, I plan to allow:function myFunc($arg1)
{
$myVar = $arg1 * 10;
$var2 = 99 % (87 + $myVar);
return ($var2 + 6, $var2 * 6);
}
section blah()
{
($retA, $retB) = myFunc(12);
if ($retA < $retB || $retB == 55)
detailPrint("hi!");
}
Still to be done:
$result = MessageBox(MB_OK, "lolzzzzz");
if ($result == IDOK)
{
...
}
* The preprocessor stuff but for my degree I will likely have the most basic form of #include, #define, #ifdef etc with perhaps macros via #macro akin to the C #define preprocessor directive. Extras can be added after.
* Plugin calls
* Variables optimisation (i.e. replace variable names with $0-$9, $R0-$R9 where possible (these are already used by the assembler for mathematical ops etc)).
* Properties
I have not yet decided on the properties such as Name, OutFile etc. Kichik had the idea to have a a separate file for properties in XML or some other format. However I am just thinking of keeping it simple so outFile("blah.exe"); and Name("Blah!"); for example which would be used outside a section/function just like in NSIS.
I'm not sure whether this project will become the new face of NSIS or not because it may need a lot of existing stuff to be rewritten (I will be adding an __asm like instruction for inline NSIS script though). However it is an interesting exercise, especially for myself. Either way if anyone has any nice ideas I would love to hear it.
Thanks
Stu