UNPKG

@vizydrop/date-range-grammar

Version:
33 lines (27 loc) 723 B
/********************************************************************* * © Copyright IBM Corp. 2025 *********************************************************************/ // eslint-disable-next-line max-classes-per-file const antlr4 = require('antlr4'); class LexerErrorListener extends antlr4.error.ErrorListener { constructor() { super(); this.hasErrors = false; } syntaxError() { this.hasErrors = true; } } class ParserErrorListener extends antlr4.error.ErrorListener { constructor() { super(); this.hasErrors = false; } syntaxError() { this.hasErrors = true; } } module.exports = { LexerErrorListener, ParserErrorListener };