import { GAstVisitor } from 'chevrotain';
export default class TokenCollectorVisitor extends GAstVisitor {
    visitNonTerminal(_node) { }
    visitAlternative(_node) { }
    visitOption(_node) { }
    visitRepetition(_node) { }
    visitRepetitionMandatory(_node) { }
    visitAlternation(_node) { }
    visitRule(_node) { }
    actualTokens;
    constructor() {
        super();
        this.actualTokens = [];
    }
    visitTerminal(node) {
        this.actualTokens.push(node.terminalType);
    }
    visitRepetitionMandatoryWithSeparator(node) {
        this.actualTokens.push(node.separator);
    }
    visitRepetitionWithSeparator(node) {
        this.actualTokens.push(node.separator);
    }
}
