astrocite-ris
Advanced tools
Comparing version 0.4.2-0 to 0.4.3-0
@@ -130,3 +130,3 @@ /* | ||
}; | ||
}, peg$c3 = "ER", peg$c4 = peg$literalExpectation("ER", false), peg$c5 = /^[A-Z0-9]/, peg$c6 = peg$classExpectation([["A", "Z"], ["0", "9"]], false, false), peg$c7 = function (k) { return k; }, peg$c8 = /^[^\r\n]/, peg$c9 = peg$classExpectation(["\r", "\n"], true, false), peg$c10 = function (line) { return line; }, peg$c11 = "-", peg$c12 = peg$literalExpectation("-", false), peg$c13 = "TY", peg$c14 = peg$literalExpectation("TY", false), peg$c15 = function (v) { return v; }, peg$c16 = /^[\r\n]/, peg$c17 = peg$classExpectation(["\r", "\n"], false, false), peg$c18 = peg$otherExpectation("Mandatory Horizontal Whitespace"), peg$c19 = /^[ \t]/, peg$c20 = peg$classExpectation([" ", "\t"], false, false), peg$c21 = peg$otherExpectation("Optional Horizontal Whitespace"), peg$c22 = peg$otherExpectation("Mandatory Vertical Whitespace"), peg$c23 = peg$otherExpectation("Optional Vertical Whitespace"), peg$c24 = peg$otherExpectation("Mandatory Whitespace"), peg$c25 = /^[ \t\n\r]/, peg$c26 = peg$classExpectation([" ", "\t", "\n", "\r"], false, false), peg$c27 = peg$otherExpectation("Optional Whitespace"), peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{ line: 1, column: 1 }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$resultsCache = {}, peg$result; | ||
}, peg$c3 = "ER", peg$c4 = peg$literalExpectation("ER", false), peg$c5 = /^[A-Z0-9]/, peg$c6 = peg$classExpectation([["A", "Z"], ["0", "9"]], false, false), peg$c7 = function (k) { return k; }, peg$c8 = /^[^\r\n]/, peg$c9 = peg$classExpectation(["\r", "\n"], true, false), peg$c10 = function (line) { return line; }, peg$c11 = "-", peg$c12 = peg$literalExpectation("-", false), peg$c13 = "TY", peg$c14 = peg$literalExpectation("TY", false), peg$c15 = function (v) { return v; }, peg$c16 = /^[\r\n]/, peg$c17 = peg$classExpectation(["\r", "\n"], false, false), peg$c18 = peg$otherExpectation("Mandatory Horizontal Whitespace"), peg$c19 = /^[ \t]/, peg$c20 = peg$classExpectation([" ", "\t"], false, false), peg$c21 = peg$otherExpectation("Optional Horizontal Whitespace"), peg$c22 = peg$otherExpectation("Mandatory Vertical Whitespace"), peg$c23 = peg$otherExpectation("Optional Vertical Whitespace"), peg$c24 = peg$otherExpectation("Mandatory Whitespace"), peg$c25 = /^[ \t\n\r]/, peg$c26 = peg$classExpectation([" ", "\t", "\n", "\r"], false, false), peg$c27 = peg$otherExpectation("Optional Whitespace"), peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{ line: 1, column: 1 }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$result; | ||
if ("startRule" in options) { | ||
@@ -229,7 +229,2 @@ if (!(options.startRule in peg$startRuleFunctions)) { | ||
var s0, s1, s2, s3; | ||
var key = peg$currPos * 15 + 0, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
s0 = peg$currPos; | ||
@@ -270,3 +265,2 @@ s1 = peg$parse__(); | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -276,7 +270,2 @@ } | ||
var s0, s1, s2, s3; | ||
var key = peg$currPos * 15 + 1, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
s0 = peg$currPos; | ||
@@ -317,3 +306,2 @@ s1 = peg$parseSTART(); | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -323,7 +311,2 @@ } | ||
var s0, s1, s2, s3, s4; | ||
var key = peg$currPos * 15 + 2, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
s0 = peg$currPos; | ||
@@ -361,3 +344,2 @@ s1 = peg$parsePropertyKey(); | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -367,7 +349,2 @@ } | ||
var s0, s1, s2, s3, s4; | ||
var key = peg$currPos * 15 + 3, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
s0 = peg$currPos; | ||
@@ -445,3 +422,2 @@ s1 = peg$currPos; | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -451,7 +427,2 @@ } | ||
var s0, s1, s2, s3; | ||
var key = peg$currPos * 15 + 4, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
s0 = peg$currPos; | ||
@@ -494,3 +465,2 @@ s1 = peg$currPos; | ||
s0 = s1; | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -500,7 +470,2 @@ } | ||
var s0, s1, s2, s3; | ||
var key = peg$currPos * 15 + 5, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
s0 = peg$currPos; | ||
@@ -539,3 +504,2 @@ s1 = peg$parse_h(); | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -545,7 +509,2 @@ } | ||
var s0, s1, s2, s3, s4; | ||
var key = peg$currPos * 15 + 6, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
s0 = peg$currPos; | ||
@@ -592,3 +551,2 @@ if (input.substr(peg$currPos, 2) === peg$c13) { | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -598,7 +556,2 @@ } | ||
var s0, s1, s2, s3, s4; | ||
var key = peg$currPos * 15 + 7, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
s0 = peg$currPos; | ||
@@ -653,3 +606,2 @@ if (input.substr(peg$currPos, 2) === peg$c3) { | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -659,7 +611,2 @@ } | ||
var s0; | ||
var key = peg$currPos * 15 + 8, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
if (peg$c16.test(input.charAt(peg$currPos))) { | ||
@@ -675,3 +622,2 @@ s0 = input.charAt(peg$currPos); | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -681,7 +627,2 @@ } | ||
var s0, s1; | ||
var key = peg$currPos * 15 + 9, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
peg$silentFails++; | ||
@@ -724,3 +665,2 @@ s0 = []; | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -730,7 +670,2 @@ } | ||
var s0, s1; | ||
var key = peg$currPos * 15 + 10, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
peg$silentFails++; | ||
@@ -768,3 +703,2 @@ s0 = []; | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -774,7 +708,2 @@ } | ||
var s0, s1; | ||
var key = peg$currPos * 15 + 11, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
peg$silentFails++; | ||
@@ -817,3 +746,2 @@ s0 = []; | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -823,7 +751,2 @@ } | ||
var s0, s1; | ||
var key = peg$currPos * 15 + 12, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
peg$silentFails++; | ||
@@ -861,3 +784,2 @@ s0 = []; | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -867,7 +789,2 @@ } | ||
var s0, s1; | ||
var key = peg$currPos * 15 + 13, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
peg$silentFails++; | ||
@@ -910,3 +827,2 @@ s0 = []; | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -916,7 +832,2 @@ } | ||
var s0, s1; | ||
var key = peg$currPos * 15 + 14, cached = peg$resultsCache[key]; | ||
if (cached) { | ||
peg$currPos = cached.nextPos; | ||
return cached.result; | ||
} | ||
peg$silentFails++; | ||
@@ -954,3 +865,2 @@ s0 = []; | ||
} | ||
peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; | ||
return s0; | ||
@@ -957,0 +867,0 @@ } |
{ | ||
"name": "astrocite-ris", | ||
"version": "0.4.2-0", | ||
"version": "0.4.3-0", | ||
"description": "Parser and AST for converting RIS to CSL JSON", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
47100
6
1149