You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
363 B
JavaScript
17 lines
363 B
JavaScript
"use strict";
|
|
|
|
/* 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;
|