X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FParser.java;h=09f50dbc28573f22d649f0d63af2799ed43924ec;hp=932c5b8fd2284cc80fcda44a22ce8a7b91f183e6;hb=a41252ba1e0f5dd90100aa2064c011268809c038;hpb=a6c4f7b784acf2269c33188982b0d479cc11a0f4 diff --git a/src/org/ibex/js/Parser.java b/src/org/ibex/js/Parser.java index 932c5b8..09f50db 100644 --- a/src/org/ibex/js/Parser.java +++ b/src/org/ibex/js/Parser.java @@ -317,7 +317,7 @@ class Parser extends Lexer implements ByteCodes { // attempt to continue the expression continueExpr(b, minPrecedence); } - + /* private Grammar parseGrammar(Grammar g) throws IOException { int tok = getToken(); if (g != null) @@ -348,7 +348,7 @@ class Parser extends Lexer implements ByteCodes { if (g == null) return parseGrammar(g0); return parseGrammar(new Grammar.Juxtaposition(g, g0)); } - + */ /** * Assuming that a complete assignable (lvalue) has just been * parsed and the object and key are on the stack, @@ -368,7 +368,7 @@ class Parser extends Lexer implements ByteCodes { // force the default case tok = -1; switch(tok) { - + /* case GRAMMAR: { b.add(parserLine, GET_PRESERVE); Grammar g = parseGrammar(null); @@ -382,7 +382,7 @@ class Parser extends Lexer implements ByteCodes { b.add(parserLine, PUT); break; } - + */ case ASSIGN_BITOR: case ASSIGN_BITXOR: case ASSIGN_BITAND: case ASSIGN_LSH: case ASSIGN_RSH: case ASSIGN_URSH: case ASSIGN_MUL: case ASSIGN_DIV: case ASSIGN_MOD: case ASSIGN_ADD: case ASSIGN_SUB: case ADD_TRAP: case DEL_TRAP: { if (tok != ADD_TRAP && tok != DEL_TRAP) b.add(parserLine, GET_PRESERVE);