Commit Graph

11 Commits

Author SHA1 Message Date
e5eca7bed6 Added iterable objects
__iter and __next are now reserved IStrings, OP_NEXT and OP_ITER have also been added. A new token (TOKEN_IN) has been added to the lexer. The parser now supports the for each loop (for i, ... in <object> do ... end).
savedPushed has been removed from the CCompilerState struct.
2020-12-15 21:21:51 -06:00
9aa7fa1381 replaced facttest.lua with fibtest.lua
Optimized the NaN box to be byte aligned, performance under the fibtest.lua script improved by ~2.5 seconds (~31 before ~28.5 after on cpunch's machine)
also cleaned up some misc. comments
2020-12-07 23:26:55 -06:00
9ca67c8408 changed class -> proto 2020-12-05 17:58:56 -06:00
6485f90c2d updated README 2020-11-20 15:32:12 -06:00
6d45c0a676 fixed __index 2020-11-20 15:10:49 -06:00
46b99ab390 minor refactoring, added inc and dec operators 2020-11-19 14:41:21 -06:00
4c4b5eae8d refactored stress test 2020-11-17 15:13:51 -06:00
aaed92424f CObjMethod refactor 2020-11-17 15:07:56 -06:00
329d34aa43 fixed clang warnings 2020-11-17 13:17:23 -06:00
204bec3d0a added IStrings, added __index functionality 2020-11-16 19:58:16 -06:00
4ff1e59042 moved examples to examples folder 2020-11-13 17:50:55 -06:00