@vizydrop/date-range-grammar
Version:
Vizydrop date range grammar with samples
33 lines (27 loc) • 723 B
JavaScript
/*********************************************************************
* © 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
};