src/tools.js
function syntaxError(message, pos) {
    let err = Error(message);
    err.name = "SyntaxError";
    err.pos = pos;
    return err;
}
function syntaxError(message, pos) {
    let err = Error(message);
    err.name = "SyntaxError";
    err.pos = pos;
    return err;
}
(string, number) => object