Skip to content

Commit

Permalink
add ES6 computed property names, (generator) methods, binary, octal
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Feb 13, 2015
1 parent c89cc00 commit 9ba1dc4
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions es6.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* this file contains all grammatical productions in ECMA-262 edition 5.1 ** * **/
<!-- HTML-style comments -->

// whitespace
tab:for(;;)break tab;
Expand Down Expand Up @@ -30,6 +31,8 @@ null; true; false;
0.; 0.00; 10.00; .0; .00
0e0; 0E0; 0.e0; 0.00e+0; .00e-0;
0x0; 0X0; 0x0123456789abcdefABCDEF;
0b0; 0B0; 0b01; 0b10; 0b10101010;
0o0; 0O0; 0o01234567;
2e308;

""; "'"; "\'\"\\\b\f\n\r\t\v\0";
Expand Down Expand Up @@ -58,11 +61,18 @@ this;

x;

[]; [,]; [0]; [0,]; [0,0]; [0,0,]; [0,,0]; [,,];
[]; [,]; [0]; [0,]; [,0]; [0,0]; [0,0,]; [0,,0]; [,,];

({}); ({x:0}); ({x:0,y:0}); ({x:0,}); ({x:0,y:0,});
({0:0}); ({0.:0}); ({0.0:0}); ({.0:0}); ({0e0:0}); ({0x0:0});
({get x() {}, set x(y) {}});
({}); ({x}); ({x:0}); ({x:0,y:0}); ({x:0,}); ({'x':0,"y":0,in:0});
({
0: 0, 0.: 0, 0.0: 0, .0: 0, 0e0: 0, 0x0: 0, [0]: 0,
get x(){}, set x(a){}, get 'y'(){}, set "y"(a){},
get 0(){}, set 0(a){}, get var(){}, set var(x){},
get [0](){}, set [0](){}, [1](){},
a(){}, 'b'(){}, "c"(){}, 0(){}, .1(){}, 1.(){}, 1e1(){},
var(a, b = 0, [c], [d = 0], {e, f: g, h = 0, i: j = 0}, ...k){},
*d(){}, *'e'(){}, *"f"(){}, *2(){}, *.2(){}, *3.(){}, *2e2(){}, *in(){},
});

0..a;

Expand Down Expand Up @@ -116,6 +126,7 @@ if(0); if(0);else;

do;while(0) 0;
do;while(0);
do;while(0)
while(0);
for(;;)break; for(0;0;0); for((0 in[]);0;);
for(var a;;)break; for(var a,b;0;0);
Expand Down

0 comments on commit 9ba1dc4

Please sign in to comment.