pegjs/lib/grammar-error.js
David Majda 5adad3ae12 Utility functions cleanup: Split lib/utils.js
Split lib/utils.js into multiple files. Some of the functions were
generic, these were moved into files in lib/utils. Other funtions were
specific for the compiler, these were moved to files in lib/compiler.

This commit only moves functions around -- there is no renaming and
cleanup performed. Both will come later.
2014-05-08 20:28:31 +02:00

12 lines
255 B
JavaScript

var classes = require("./utils/classes");
/* Thrown when the grammar contains an error. */
function GrammarError(message) {
this.name = "GrammarError";
this.message = message;
}
classes.subclass(GrammarError, Error);
module.exports = GrammarError;