Sei Lisa
beb413420d
Disable the debug code
2014-07-27 13:44:13 +02:00
Sei Lisa
0b74093255
Fix tuple mess, typecast bug, and boolean bug.
...
Fix the tuple mess with the right approach. The EXPR tuple should not be changed, only the content.
Fix bug with typecasts. (NOTE: Debug code active)
Fix bug where <= and >= were returning bool instead of int.
2014-07-27 13:43:16 +02:00
Sei Lisa
d98e145090
Add missing operators & returns, remove typecast bogus optimization.
2014-07-27 04:15:12 +02:00
Sei Lisa
33440f5dd4
Fold vector/rotation/list expressions into constants.
2014-07-27 03:17:38 +02:00
Sei Lisa
4f7933aa3b
Remove "drunk" comment.
2014-07-27 02:56:35 +02:00
Sei Lisa
b76ae99616
Fixes and folding improvements to the FOR loop.
...
Added an utility function to fold a list of expressions and completely remove the unused members. No known use besides FOR.
2014-07-27 02:52:16 +02:00
Sei Lisa
59de1e1f4f
First prototype version of the optimizer.
2014-07-27 02:19:54 +02:00
Sei Lisa
a3354fae0e
First steps in optimizer.
...
Still WIP, though, but it already optimizes e.g. this:
default { timer() { 2+2; } }
to this:
default { timer() { 4; } }
2014-07-26 21:32:01 +02:00