Re-compiling core with new changes. All tests pass.

This commit is contained in:
Stan Angeloff
2010-09-19 15:29:15 +03:00
parent 4a3e1fb0cb
commit bb35b3e3b2
11 changed files with 569 additions and 569 deletions

View File

@@ -1,5 +1,5 @@
(function() {
var Parser, _a, _b, _c, _d, _e, _f, _g, _h, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap;
var Parser, _cache, _cache2, _cache3, _cache4, _cache5, _index, _index2, _result, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap;
var __hasProp = Object.prototype.hasOwnProperty;
Parser = require('jison').Parser;
unwrap = /function\s*\(\)\s*\{\s*return\s*([\s\S]*);\s*\}/;
@@ -612,18 +612,18 @@
};
operators = [["right", '?', 'NEW'], ["left", 'CALL_START', 'CALL_END'], ["nonassoc", '++', '--'], ["right", 'UNARY'], ["left", 'MATH'], ["left", '+', '-'], ["left", 'SHIFT'], ["left", 'COMPARE'], ["left", 'INSTANCEOF'], ["left", '==', '!='], ["left", 'LOGIC'], ["right", 'COMPOUND_ASSIGN'], ["left", '.'], ["nonassoc", 'INDENT', 'OUTDENT'], ["right", 'WHEN', 'LEADING_WHEN', 'IN', 'OF', 'BY', 'THROW'], ["right", 'IF', 'UNLESS', 'ELSE', 'FOR', 'WHILE', 'UNTIL', 'LOOP', 'SUPER', 'CLASS', 'EXTENDS'], ["right", '=', ':', 'RETURN'], ["right", '->', '=>', 'UNLESS', 'POST_IF', 'POST_UNLESS']];
tokens = [];
_a = grammar;
for (name in _a) {
if (!__hasProp.call(_a, name)) continue;
alternatives = _a[name];
_cache = grammar;
for (name in _cache) {
if (!__hasProp.call(_cache, name)) continue;
alternatives = _cache[name];
grammar[name] = (function() {
_b = []; _d = alternatives;
for (_c = 0, _e = _d.length; _c < _e; _c++) {
alt = _d[_c];
_b.push((function() {
_g = alt[0].split(' ');
for (_f = 0, _h = _g.length; _f < _h; _f++) {
token = _g[_f];
_result = []; _cache2 = alternatives;
for (_index = 0, _cache3 = _cache2.length; _index < _cache3; _index++) {
alt = _cache2[_index];
_result.push((function() {
_cache4 = alt[0].split(' ');
for (_index2 = 0, _cache5 = _cache4.length; _index2 < _cache5; _index2++) {
token = _cache4[_index2];
if (!(grammar[token])) {
tokens.push(token);
}
@@ -634,7 +634,7 @@
return alt;
})());
}
return _b;
return _result;
})();
}
exports.parser = new Parser({