qzdoom-gpl/src/scripting/zscript
Christoph Oelckers 1450c3dffb - tested and fixed the regular assignment statement for both local and member variables.
The generated object code can definitely use an optimization pass but that's something left for later when more things are working. Right now it creates one opcode more than necessary for all member accesses (instead of using the offset in the store command it calculates an actual address of the variable in another address register) and can create one too many for non-constant expressions being assigned to local variables (a move between two registers because the emitted expression on the right hand side does not know that it can emit to the actual variable's register.)
2016-10-21 10:09:01 +02:00
..
ast.cpp - 'fixed' local variable declrations to work like C, not like some Lua-inspired nightmare. Also added proper initialization syntax for arrays. 2016-10-19 13:07:44 +02:00
zcc-parse.lemon - Renamed FxSequence to FxCompoundStatement. 2016-10-19 16:15:02 +02:00
zcc_compile.cpp - tested and fixed the regular assignment statement for both local and member variables. 2016-10-21 10:09:01 +02:00
zcc_compile.h - restrict 8 and 16 bit integer types to struct and class members - and I am not really sure if they should even be allowed there, aside from legacy readonly properties. For 32 bit floats the same would hold, but those are already mapped to 64 bit doubles silently. 2016-10-16 12:47:26 +02:00
zcc_expr.cpp - implemented '**' (power) operator. To ensure reliability, acustom 'pow' function will be used to calculate it. 2016-10-17 15:17:48 +02:00
zcc_exprlist.h - added 'null' token to the ZScript parser which is needed for null pointers. 2016-10-19 00:35:34 +02:00
zcc_parser.cpp - added 'null' token to the ZScript parser which is needed for null pointers. 2016-10-19 00:35:34 +02:00
zcc_parser.h - 'fixed' local variable declrations to work like C, not like some Lua-inspired nightmare. Also added proper initialization syntax for arrays. 2016-10-19 13:07:44 +02:00