Commit Graph

629 Commits

Author SHA1 Message Date
Dan Onoshko
4db28f7851 ES6 for ...of is added 2015-01-02 02:41:48 +07:00
Dan Onoshko
2a31e4a52c Fix #597 from UglifyJS 2015-01-02 01:33:10 +07:00
Dan Onoshko
ff5f1ec141 client-server command are done 2015-01-02 01:22:07 +07:00
Dan Onoshko
6b7f7acd46 uid SplatedVarDef is fixed 2015-01-02 00:48:13 +07:00
Dan Onoshko
8037da356a async method fix 2015-01-02 00:12:50 +07:00
Dan Onoshko
5c9e1fd088 await call is done 2015-01-01 23:23:14 +07:00
Dan Onoshko
a8d8da556f async function definiton is done 2014-12-31 20:25:29 +07:00
Dan Onoshko
d87a5db0fd modules are done 2014-12-31 03:18:16 +07:00
Dan Onoshko
45da7bde29 class fix, singletons added 2014-12-27 01:12:58 +06:00
Dan Onoshko
5cbfbaaa74 bower test 2014-09-10 13:21:17 +07:00
Dan Onoshko
6a6c23d368 pg edited 2014-09-04 12:13:32 +07:00
Dan Onoshko
2c354e5f9f pg edited 2014-09-04 12:11:50 +07:00
Dan Onoshko
ff04033251 pg test 2014-09-03 23:39:13 +07:00
Dan Onoshko
192fe7bd53 test 2014-09-03 23:24:47 +07:00
Dan Onoshko
89671acb9a IterationStatement fix 2014-09-03 23:17:03 +07:00
Dan Onoshko
2f3f25340c init 2014-09-03 22:02:32 +07:00
Dan Onoshko
476ed7c294 . 2014-09-03 22:00:03 +07:00
Dan Onoshko
ef7b77e5da Classes fixes. 2014-08-20 18:53:54 +07:00
Dan Onoshko
8797d5cc0c Classes are done. 2014-08-20 02:32:57 +07:00
Onoshko Dan
ad70d58e83 Class translation still in progress. 2014-08-17 16:39:57 +07:00
Onoshko Dan
7f13870213 Class translation in progress. 2014-08-17 09:18:40 +07:00
Onoshko Dan
73fbeb2377 Some fixes. Class translation spec is done. 2014-08-16 22:40:23 +07:00
Onoshko Dan
0585a8eb8f Dotal getters and setters definition is done.
covert int get Math.rand() => 123;
		covert int set Math.rand(int val) => console.log(val);

		to

		_ColaRuntime$$updateProperty(Math, "rand", {
    		get: function rand() {
        		return 123;
        	},
        	configurable: true
    	});

    	_ColaRuntime$$updateProperty(Math, "rand", {
        	set: function rand() {
          		var val = arguments[0] !== undefined ? arguments[0] :
_ColaRuntime$$error("Argument `val` is required!");
        		return console.log(val);
    		},
    		configurable: true
		});
2014-08-16 18:52:15 +07:00
Onoshko Dan
8e3914de57 Var and func def modificators.
covert int Math.some() => 123;

to

Object.defineProperty(Math, "some", {
    value: function some() {
        return 123;
    },
    writable: true
});
2014-08-16 13:21:45 +07:00
Onoshko Dan
1d297d9248 Negate and modulo array accessors are done.
arr[-1]; // last element

int index = -10;
arr[%index] = 34; // arr[index %% arr.length];
2014-08-15 17:45:46 +07:00
Onoshko Dan
aec283f0b4 operator ? to sign an argument as not-required
int sqr(int x) => x ** 2;

sqr(2); // 4
sqr();  // Exception

int sqrt(int x?) => x ** 2;
sqr();  // NaN
2014-08-15 04:19:06 +07:00
Onoshko Dan
c9f4a2cd12 Conditional Accessor is done. 2014-08-15 03:34:04 +07:00
Onoshko Dan
c3df8f1d3f Progress
- Use inline `isset` expression instead function. status: done
- Use inline `is`. status: done
- `some is NaN` to `isNaN(some)`. status: done
- operator `?` instead `isset`. status: done
- rename runtime prefix `$_cola` to `_ColaRuntime$$`. status: done
- dotal names of refs: done
2014-08-14 20:05:38 +07:00
Onoshko Dan
a9010b529b readme fix 2014-08-02 02:32:40 +07:00
Onoshko Dan
8d600533ac Arrow functions bug-fix 2014-07-29 14:32:56 +07:00
Onoshko Dan
bd86f0d5ce type check progress 2014-07-29 01:51:41 +07:00
Onoshko Dan
e6a49779ae bug fix 2014-07-29 01:51:23 +07:00
Onoshko Dan
e5d3cb56c0 in progress... 2014-07-03 01:08:24 +07:00
Onoshko Dan
14eb63b057 Functions translation bug fix 2014-07-03 01:08:11 +07:00
Onoshko Dan
c635d9e1f1 Some info was added 2014-07-03 01:07:41 +07:00
Onoshko Dan
1b36947fc7 TODO Updated 2014-07-03 01:06:31 +07:00
Onoshko Dan
552c4220a5 logo fixed 2014-06-30 01:55:09 +07:00
Onoshko Dan
862c7e4061 logo added 2014-06-30 01:53:48 +07:00
Onoshko Dan
3a08d8ebce TypeChecker: vars, args and functions registration 2014-06-30 01:49:54 +07:00
Trigen Software
fea0f353c7 c9 test 2014-06-29 03:19:41 -04:00
Onoshko Dan
c72d6f0a4a Prepare to typing. 2014-06-12 02:14:36 +07:00
Onoshko Dan
a46c1f21a0 Some refactoring. 2014-06-12 02:14:01 +07:00
Onoshko Dan
fc6ba0c28c To-do updated. 2014-06-12 02:13:38 +07:00
Onoshko Dan
efe3183540 Some recoding. 2014-06-01 03:21:52 +07:00
Onoshko Dan
ab6fde9252 fix. 2014-06-01 03:21:29 +07:00
Onoshko Dan
3e4589b331 Prepare code to the static typing. 2014-06-01 03:14:13 +07:00
Onoshko Dan
cdf1161409 Fixes. 2014-05-30 01:59:56 +07:00
Onoshko Dan
945967cdc7 Fixes. 2014-05-30 01:49:27 +07:00
Onoshko Dan
e7c016fae8 Fixes. 2014-05-30 01:34:32 +07:00
Onoshko Dan
965d94c636 Fixes. 2014-05-30 01:33:48 +07:00