import type { GrlToken } from "../lexer/index.js";

export class GrlParseError extends Error {
  constructor(
    message: string,
    readonly token: GrlToken
  ) {
    super(`${message} at ${token.range.start.line}:${token.range.start.column}`);
    this.name = "GrlParseError";
  }
}
