|
|
|
@ -1039,7 +1039,7 @@ function generateJS(ast, options) {
|
|
|
|
|
" }",
|
|
|
|
|
"",
|
|
|
|
|
" function expected(description, location) {",
|
|
|
|
|
" location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos)",
|
|
|
|
|
" location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos);",
|
|
|
|
|
"",
|
|
|
|
|
" throw peg$buildStructuredError(",
|
|
|
|
|
" [peg$otherExpectation(description)],",
|
|
|
|
@ -1049,7 +1049,7 @@ function generateJS(ast, options) {
|
|
|
|
|
" }",
|
|
|
|
|
"",
|
|
|
|
|
" function error(message, location) {",
|
|
|
|
|
" location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos)",
|
|
|
|
|
" location = location !== undefined ? location : peg$computeLocation(peg$savedPos, peg$currPos);",
|
|
|
|
|
"",
|
|
|
|
|
" throw peg$buildSimpleError(message, location);",
|
|
|
|
|
" }",
|
|
|
|
|