|
|
|
@ -381,30 +381,10 @@ function peg$parse(input, options) {
|
|
|
|
|
return input.substring(peg$savedPos, peg$currPos);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function offset() {
|
|
|
|
|
return peg$savedPos;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function range() {
|
|
|
|
|
return [peg$savedPos, peg$currPos];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function location() {
|
|
|
|
|
return peg$computeLocation(peg$savedPos, peg$currPos);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function expected(description, location) {
|
|
|
|
|
location = location !== undefined
|
|
|
|
|
? location
|
|
|
|
|
: peg$computeLocation(peg$savedPos, peg$currPos);
|
|
|
|
|
|
|
|
|
|
throw peg$buildStructuredError(
|
|
|
|
|
[peg$otherExpectation(description)],
|
|
|
|
|
input.substring(peg$savedPos, peg$currPos),
|
|
|
|
|
location
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function error(message, location) {
|
|
|
|
|
location = location !== undefined
|
|
|
|
|
? location
|
|
|
|
|