@stordata/grammars
Version:
A collection of ANTLR grammars used at Stordata. This project exists so that we can package the grammars (and various utilities) as a CommonJS module. The `antlr4` Javascript runtime is only available as an ES module at the time of writing.
34 lines (22 loc) • 716 B
JavaScript
// Generated from src/grammars/CSV.g4 by ANTLR 4.13.1
// jshint ignore: start
import antlr4 from 'antlr4';
// This class defines a complete generic visitor for a parse tree produced by CSVParser.
export default class CSVVisitor extends antlr4.tree.ParseTreeVisitor {
// Visit a parse tree produced by CSVParser#all.
visitAll(ctx) {
return this.visitChildren(ctx);
}
// Visit a parse tree produced by CSVParser#headers.
visitHeaders(ctx) {
return this.visitChildren(ctx);
}
// Visit a parse tree produced by CSVParser#line.
visitLine(ctx) {
return this.visitChildren(ctx);
}
// Visit a parse tree produced by CSVParser#column.
visitColumn(ctx) {
return this.visitChildren(ctx);
}
}