|
|
|
@ -668,7 +668,7 @@ module.exports = function(ast, options) {
|
|
|
|
|
' * http://pegjs.majda.cz/',
|
|
|
|
|
' */',
|
|
|
|
|
'',
|
|
|
|
|
' function subclass(child, parent) {',
|
|
|
|
|
' function peg$subclass(child, parent) {',
|
|
|
|
|
' function ctor() { this.constructor = child; }',
|
|
|
|
|
' ctor.prototype = parent.prototype;',
|
|
|
|
|
' child.prototype = new ctor();',
|
|
|
|
@ -735,7 +735,7 @@ module.exports = function(ast, options) {
|
|
|
|
|
' this.message = buildMessage(expected, found);',
|
|
|
|
|
' }',
|
|
|
|
|
'',
|
|
|
|
|
' subclass(SyntaxError, Error);',
|
|
|
|
|
' peg$subclass(SyntaxError, Error);',
|
|
|
|
|
'',
|
|
|
|
|
' function parse(input) {',
|
|
|
|
|
' var options = arguments.length > 1 ? arguments[1] : {},',
|
|
|
|
|