5adad3ae12
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.
12 lines
255 B
JavaScript
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;
|