@log4b0at/pegjs
Version:
Parser generator for JavaScript
23 lines (13 loc) • 402 B
JavaScript
;
// Thrown when the grammar contains an error.
class GrammarError {
constructor( message, location ) {
this.name = "GrammarError";
this.message = message;
this.location = location;
if ( typeof Error.captureStackTrace === "function" ) {
Error.captureStackTrace( this, GrammarError );
}
}
}
module.exports = GrammarError;