Permalink
Browse files

compiler: added ArrayLiteral

  • Loading branch information...
1 parent 963c5a6 commit ebbc872894afbaae81b8254d338dc0bcfa21c51a @oyvindkinsey committed Feb 5, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 compiler.js
View
7 compiler.js
@@ -134,6 +134,10 @@ Compiler.prototype = {
case T.RegularExpressionLiteral:
push(symbol.value);
break;
+ case T.ArrayLiteral:
+ push("[");
+ separationChar = ",";
+ break;
default:
// push(symbol.value);
@@ -180,6 +184,9 @@ Compiler.prototype = {
push("]");
}
break;
+ case T.ArrayLiteral:
+ push("]");
+ break;
}
this.prevSymbol = symbol;
},

0 comments on commit ebbc872

Please sign in to comment.