Mihai Bazon
|
37eecc16a4
|
more optimizations for ifs/conditionals
(XXX: should add tests before anything else)
|
2012-09-03 19:38:45 +03:00 |
|
Mihai Bazon
|
f03138daa8
|
resolve constant expressions
|
2012-09-03 15:47:15 +03:00 |
|
Mihai Bazon
|
6d0db4ce14
|
an AST_If is too a StatementWithBody
|
2012-09-03 12:11:44 +03:00 |
|
Mihai Bazon
|
d7c1dc6c05
|
a LabeledStatement should be in fact a StatementWithBody
This fixes output for:
if (foo) {
moo: if (bar) {
break moo;
}
} else {
baz();
}
(the labeled statement must be outputted inside brackets)
|
2012-09-03 12:05:10 +03:00 |
|
Mihai Bazon
|
58a3b5e93f
|
update (c) years
|
2012-08-27 11:01:41 +03:00 |
|
Mihai Bazon
|
4437e7af19
|
fix compressing a,b; return c; into return a,b,c;
|
2012-08-27 11:00:22 +03:00 |
|
Mihai Bazon
|
95b18e54a4
|
added license
|
2012-08-22 21:28:59 +03:00 |
|
Mihai Bazon
|
159a6f048c
|
wrote more of the compressor and added some tests
|
2012-08-22 15:21:58 +03:00 |
|
Mihai Bazon
|
1b839eb35b
|
hint that brackets may be required in AST_BlockStatement
|
2012-08-21 19:16:05 +03:00 |
|
Mihai Bazon
|
ffe58a9961
|
cleaned up some mess and started the actual compressor
|
2012-08-21 16:14:43 +03:00 |
|