diff --git a/go/internal/antlr4_sqlite_parser/README.md b/go/internal/antlr4_sqlite_parser/README.md index d650b01..ed394ef 100644 --- a/go/internal/antlr4_sqlite_parser/README.md +++ b/go/internal/antlr4_sqlite_parser/README.md @@ -2,8 +2,18 @@ - Download Antlr4 https://www.antlr.org/download.html +Generate parser: + ```sh alias antlr='java -jar antlr-4.7-complete.jar' -antlr -Dlanguage=Go SQLiteLexer.g4 -antlr -Dlanguage=Go SQLiteParser.g4 +antlr -Dlanguage=Go -package sqlite_parser SQLiteLexer.g4 +antlr -Dlanguage=Go -visitor -no-listener -package sqlite_parser SQLiteParser.g4 +``` + +Clean generated code: + +```sh +rm *.interp *.tokens *.go ``` + +More examples at https://blog.gopheracademy.com/advent-2017/parsing-with-antlr4-and-go/ diff --git a/go/internal/antlr4_sqlite_parser/sqlite_lexer.go b/go/internal/antlr4_sqlite_parser/sqlite_lexer.go index 91b3045..95ddb8a 100644 --- a/go/internal/antlr4_sqlite_parser/sqlite_lexer.go +++ b/go/internal/antlr4_sqlite_parser/sqlite_lexer.go @@ -1,6 +1,6 @@ // Code generated from SQLiteLexer.g4 by ANTLR 4.13.2. DO NOT EDIT. -package parser +package sqlite_parser import ( "fmt" diff --git a/go/internal/antlr4_sqlite_parser/sqlite_parser.go b/go/internal/antlr4_sqlite_parser/sqlite_parser.go index 7294de8..f679320 100644 --- a/go/internal/antlr4_sqlite_parser/sqlite_parser.go +++ b/go/internal/antlr4_sqlite_parser/sqlite_parser.go @@ -1,7 +1,6 @@ // Code generated from SQLiteParser.g4 by ANTLR 4.13.2. DO NOT EDIT. -package parser // SQLiteParser - +package sqlite_parser // SQLiteParser import ( "fmt" "strconv" @@ -1608,15 +1607,13 @@ func (s *ParseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *ParseContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterParse(s) - } -} +func (s *ParseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitParse(s) -func (s *ParseContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitParse(s) + default: + return t.VisitChildren(s) } } @@ -1774,15 +1771,13 @@ func (s *Sql_stmt_listContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Sql_stmt_listContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterSql_stmt_list(s) - } -} +func (s *Sql_stmt_listContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitSql_stmt_list(s) -func (s *Sql_stmt_listContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitSql_stmt_list(s) + default: + return t.VisitChildren(s) } } @@ -2394,15 +2389,13 @@ func (s *Sql_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recognize return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Sql_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterSql_stmt(s) - } -} +func (s *Sql_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitSql_stmt(s) -func (s *Sql_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitSql_stmt(s) + default: + return t.VisitChildren(s) } } @@ -2870,15 +2863,13 @@ func (s *Alter_table_stmtContext) ToStringTree(ruleNames []string, recog antlr.R return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Alter_table_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterAlter_table_stmt(s) - } -} +func (s *Alter_table_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitAlter_table_stmt(s) -func (s *Alter_table_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitAlter_table_stmt(s) + default: + return t.VisitChildren(s) } } @@ -3185,15 +3176,13 @@ func (s *Analyze_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recog return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Analyze_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterAnalyze_stmt(s) - } -} +func (s *Analyze_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitAnalyze_stmt(s) -func (s *Analyze_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitAnalyze_stmt(s) + default: + return t.VisitChildren(s) } } @@ -3365,15 +3354,13 @@ func (s *Attach_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Attach_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterAttach_stmt(s) - } -} +func (s *Attach_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitAttach_stmt(s) -func (s *Attach_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitAttach_stmt(s) + default: + return t.VisitChildren(s) } } @@ -3530,15 +3517,13 @@ func (s *Begin_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogni return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Begin_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterBegin_stmt(s) - } -} +func (s *Begin_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitBegin_stmt(s) -func (s *Begin_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitBegin_stmt(s) + default: + return t.VisitChildren(s) } } @@ -3689,15 +3674,13 @@ func (s *Commit_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Commit_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCommit_stmt(s) - } -} +func (s *Commit_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCommit_stmt(s) -func (s *Commit_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCommit_stmt(s) + default: + return t.VisitChildren(s) } } @@ -3840,15 +3823,13 @@ func (s *Rollback_stmtContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Rollback_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterRollback_stmt(s) - } -} +func (s *Rollback_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitRollback_stmt(s) -func (s *Rollback_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitRollback_stmt(s) + default: + return t.VisitChildren(s) } } @@ -4011,15 +3992,13 @@ func (s *Savepoint_stmtContext) ToStringTree(ruleNames []string, recog antlr.Rec return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Savepoint_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterSavepoint_stmt(s) - } -} +func (s *Savepoint_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitSavepoint_stmt(s) -func (s *Savepoint_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitSavepoint_stmt(s) + default: + return t.VisitChildren(s) } } @@ -4133,15 +4112,13 @@ func (s *Release_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recog return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Release_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterRelease_stmt(s) - } -} +func (s *Release_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitRelease_stmt(s) -func (s *Release_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitRelease_stmt(s) + default: + return t.VisitChildren(s) } } @@ -4420,15 +4397,13 @@ func (s *Create_index_stmtContext) ToStringTree(ruleNames []string, recog antlr. return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Create_index_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCreate_index_stmt(s) - } -} +func (s *Create_index_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCreate_index_stmt(s) -func (s *Create_index_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCreate_index_stmt(s) + default: + return t.VisitChildren(s) } } @@ -4750,15 +4725,13 @@ func (s *Indexed_columnContext) ToStringTree(ruleNames []string, recog antlr.Rec return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Indexed_columnContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterIndexed_column(s) - } -} +func (s *Indexed_columnContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitIndexed_column(s) -func (s *Indexed_columnContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitIndexed_column(s) + default: + return t.VisitChildren(s) } } @@ -5116,15 +5089,13 @@ func (s *Create_table_stmtContext) ToStringTree(ruleNames []string, recog antlr. return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Create_table_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCreate_table_stmt(s) - } -} +func (s *Create_table_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCreate_table_stmt(s) -func (s *Create_table_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCreate_table_stmt(s) + default: + return t.VisitChildren(s) } } @@ -5512,15 +5483,13 @@ func (s *Column_defContext) ToStringTree(ruleNames []string, recog antlr.Recogni return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Column_defContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterColumn_def(s) - } -} +func (s *Column_defContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitColumn_def(s) -func (s *Column_defContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitColumn_def(s) + default: + return t.VisitChildren(s) } } @@ -5734,15 +5703,13 @@ func (s *Type_nameContext) ToStringTree(ruleNames []string, recog antlr.Recogniz return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Type_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterType_name(s) - } -} +func (s *Type_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitType_name(s) -func (s *Type_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitType_name(s) + default: + return t.VisitChildren(s) } } @@ -6130,15 +6097,13 @@ func (s *Column_constraintContext) ToStringTree(ruleNames []string, recog antlr. return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Column_constraintContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterColumn_constraint(s) - } -} +func (s *Column_constraintContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitColumn_constraint(s) -func (s *Column_constraintContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitColumn_constraint(s) + default: + return t.VisitChildren(s) } } @@ -6573,15 +6538,13 @@ func (s *Signed_numberContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Signed_numberContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterSigned_number(s) - } -} +func (s *Signed_numberContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitSigned_number(s) -func (s *Signed_numberContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitSigned_number(s) + default: + return t.VisitChildren(s) } } @@ -6891,15 +6854,13 @@ func (s *Table_constraintContext) ToStringTree(ruleNames []string, recog antlr.R return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Table_constraintContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterTable_constraint(s) - } -} +func (s *Table_constraintContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitTable_constraint(s) -func (s *Table_constraintContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitTable_constraint(s) + default: + return t.VisitChildren(s) } } @@ -7475,15 +7436,13 @@ func (s *Foreign_key_clauseContext) ToStringTree(ruleNames []string, recog antlr return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Foreign_key_clauseContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterForeign_key_clause(s) - } -} +func (s *Foreign_key_clauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitForeign_key_clause(s) -func (s *Foreign_key_clauseContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitForeign_key_clause(s) + default: + return t.VisitChildren(s) } } @@ -7860,15 +7819,13 @@ func (s *Conflict_clauseContext) ToStringTree(ruleNames []string, recog antlr.Re return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Conflict_clauseContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterConflict_clause(s) - } -} +func (s *Conflict_clauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitConflict_clause(s) -func (s *Conflict_clauseContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitConflict_clause(s) + default: + return t.VisitChildren(s) } } @@ -8390,15 +8347,13 @@ func (s *Create_trigger_stmtContext) ToStringTree(ruleNames []string, recog antl return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Create_trigger_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCreate_trigger_stmt(s) - } -} +func (s *Create_trigger_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCreate_trigger_stmt(s) -func (s *Create_trigger_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCreate_trigger_stmt(s) + default: + return t.VisitChildren(s) } } @@ -9008,15 +8963,13 @@ func (s *Create_view_stmtContext) ToStringTree(ruleNames []string, recog antlr.R return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Create_view_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCreate_view_stmt(s) - } -} +func (s *Create_view_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCreate_view_stmt(s) -func (s *Create_view_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCreate_view_stmt(s) + default: + return t.VisitChildren(s) } } @@ -9410,15 +9363,13 @@ func (s *Create_virtual_table_stmtContext) ToStringTree(ruleNames []string, reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Create_virtual_table_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCreate_virtual_table_stmt(s) - } -} +func (s *Create_virtual_table_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCreate_virtual_table_stmt(s) -func (s *Create_virtual_table_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCreate_virtual_table_stmt(s) + default: + return t.VisitChildren(s) } } @@ -9781,15 +9732,13 @@ func (s *With_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *With_clauseContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterWith_clause(s) - } -} +func (s *With_clauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitWith_clause(s) -func (s *With_clauseContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitWith_clause(s) + default: + return t.VisitChildren(s) } } @@ -10058,15 +10007,13 @@ func (s *Cte_table_nameContext) ToStringTree(ruleNames []string, recog antlr.Rec return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Cte_table_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCte_table_name(s) - } -} +func (s *Cte_table_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCte_table_name(s) -func (s *Cte_table_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCte_table_name(s) + default: + return t.VisitChildren(s) } } @@ -10281,15 +10228,13 @@ func (s *Recursive_cteContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Recursive_cteContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterRecursive_cte(s) - } -} +func (s *Recursive_cteContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitRecursive_cte(s) -func (s *Recursive_cteContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitRecursive_cte(s) + default: + return t.VisitChildren(s) } } @@ -10540,15 +10485,13 @@ func (s *Common_table_expressionContext) ToStringTree(ruleNames []string, recog return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Common_table_expressionContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCommon_table_expression(s) - } -} +func (s *Common_table_expressionContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCommon_table_expression(s) -func (s *Common_table_expressionContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCommon_table_expression(s) + default: + return t.VisitChildren(s) } } @@ -10798,15 +10741,13 @@ func (s *Delete_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Delete_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterDelete_stmt(s) - } -} +func (s *Delete_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitDelete_stmt(s) -func (s *Delete_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitDelete_stmt(s) + default: + return t.VisitChildren(s) } } @@ -11070,15 +11011,13 @@ func (s *Delete_stmt_limitedContext) ToStringTree(ruleNames []string, recog antl return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Delete_stmt_limitedContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterDelete_stmt_limited(s) - } -} +func (s *Delete_stmt_limitedContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitDelete_stmt_limited(s) -func (s *Delete_stmt_limitedContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitDelete_stmt_limited(s) + default: + return t.VisitChildren(s) } } @@ -11280,15 +11219,13 @@ func (s *Detach_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Detach_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterDetach_stmt(s) - } -} +func (s *Detach_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitDetach_stmt(s) -func (s *Detach_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitDetach_stmt(s) + default: + return t.VisitChildren(s) } } @@ -11476,15 +11413,13 @@ func (s *Drop_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogniz return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Drop_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterDrop_stmt(s) - } -} +func (s *Drop_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitDrop_stmt(s) -func (s *Drop_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitDrop_stmt(s) + default: + return t.VisitChildren(s) } } @@ -12159,15 +12094,13 @@ func (s *ExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) s return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *ExprContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterExpr(s) - } -} +func (s *ExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitExpr(s) -func (s *ExprContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitExpr(s) + default: + return t.VisitChildren(s) } } @@ -13605,15 +13538,13 @@ func (s *Raise_functionContext) ToStringTree(ruleNames []string, recog antlr.Rec return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Raise_functionContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterRaise_function(s) - } -} +func (s *Raise_functionContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitRaise_function(s) -func (s *Raise_functionContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitRaise_function(s) + default: + return t.VisitChildren(s) } } @@ -13805,15 +13736,13 @@ func (s *Literal_valueContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Literal_valueContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterLiteral_value(s) - } -} +func (s *Literal_valueContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitLiteral_value(s) -func (s *Literal_valueContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitLiteral_value(s) + default: + return t.VisitChildren(s) } } @@ -13964,15 +13893,13 @@ func (s *Value_rowContext) ToStringTree(ruleNames []string, recog antlr.Recogniz return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Value_rowContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterValue_row(s) - } -} +func (s *Value_rowContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitValue_row(s) -func (s *Value_rowContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitValue_row(s) + default: + return t.VisitChildren(s) } } @@ -14155,15 +14082,13 @@ func (s *Values_clauseContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Values_clauseContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterValues_clause(s) - } -} +func (s *Values_clauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitValues_clause(s) -func (s *Values_clauseContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitValues_clause(s) + default: + return t.VisitChildren(s) } } @@ -14539,15 +14464,13 @@ func (s *Insert_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Insert_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterInsert_stmt(s) - } -} +func (s *Insert_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitInsert_stmt(s) -func (s *Insert_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitInsert_stmt(s) + default: + return t.VisitChildren(s) } } @@ -14948,15 +14871,13 @@ func (s *Returning_clauseContext) ToStringTree(ruleNames []string, recog antlr.R return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Returning_clauseContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterReturning_clause(s) - } -} +func (s *Returning_clauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitReturning_clause(s) -func (s *Returning_clauseContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitReturning_clause(s) + default: + return t.VisitChildren(s) } } @@ -15315,15 +15236,13 @@ func (s *Upsert_clauseContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Upsert_clauseContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterUpsert_clause(s) - } -} +func (s *Upsert_clauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitUpsert_clause(s) -func (s *Upsert_clauseContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitUpsert_clause(s) + default: + return t.VisitChildren(s) } } @@ -15734,15 +15653,13 @@ func (s *Pragma_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Pragma_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterPragma_stmt(s) - } -} +func (s *Pragma_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitPragma_stmt(s) -func (s *Pragma_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitPragma_stmt(s) + default: + return t.VisitChildren(s) } } @@ -15934,15 +15851,13 @@ func (s *Pragma_valueContext) ToStringTree(ruleNames []string, recog antlr.Recog return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Pragma_valueContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterPragma_value(s) - } -} +func (s *Pragma_valueContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitPragma_value(s) -func (s *Pragma_valueContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitPragma_value(s) + default: + return t.VisitChildren(s) } } @@ -16129,15 +16044,13 @@ func (s *Reindex_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recog return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Reindex_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterReindex_stmt(s) - } -} +func (s *Reindex_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitReindex_stmt(s) -func (s *Reindex_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitReindex_stmt(s) + default: + return t.VisitChildren(s) } } @@ -16415,15 +16328,13 @@ func (s *Select_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Select_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterSelect_stmt(s) - } -} +func (s *Select_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitSelect_stmt(s) -func (s *Select_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitSelect_stmt(s) + default: + return t.VisitChildren(s) } } @@ -16708,15 +16619,13 @@ func (s *Join_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Join_clauseContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterJoin_clause(s) - } -} +func (s *Join_clauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitJoin_clause(s) -func (s *Join_clauseContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitJoin_clause(s) + default: + return t.VisitChildren(s) } } @@ -17191,15 +17100,13 @@ func (s *Select_coreContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Select_coreContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterSelect_core(s) - } -} +func (s *Select_coreContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitSelect_core(s) -func (s *Select_coreContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitSelect_core(s) + default: + return t.VisitChildren(s) } } @@ -17630,15 +17537,13 @@ func (s *Factored_select_stmtContext) ToStringTree(ruleNames []string, recog ant return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Factored_select_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterFactored_select_stmt(s) - } -} +func (s *Factored_select_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitFactored_select_stmt(s) -func (s *Factored_select_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitFactored_select_stmt(s) + default: + return t.VisitChildren(s) } } @@ -17785,15 +17690,13 @@ func (s *Simple_select_stmtContext) ToStringTree(ruleNames []string, recog antlr return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Simple_select_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterSimple_select_stmt(s) - } -} +func (s *Simple_select_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitSimple_select_stmt(s) -func (s *Simple_select_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitSimple_select_stmt(s) + default: + return t.VisitChildren(s) } } @@ -18050,15 +17953,13 @@ func (s *Compound_select_stmtContext) ToStringTree(ruleNames []string, recog ant return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Compound_select_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCompound_select_stmt(s) - } -} +func (s *Compound_select_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCompound_select_stmt(s) -func (s *Compound_select_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCompound_select_stmt(s) + default: + return t.VisitChildren(s) } } @@ -18510,15 +18411,13 @@ func (s *Table_or_subqueryContext) ToStringTree(ruleNames []string, recog antlr. return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Table_or_subqueryContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterTable_or_subquery(s) - } -} +func (s *Table_or_subqueryContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitTable_or_subquery(s) -func (s *Table_or_subqueryContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitTable_or_subquery(s) + default: + return t.VisitChildren(s) } } @@ -18998,15 +18897,13 @@ func (s *Result_columnContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Result_columnContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterResult_column(s) - } -} +func (s *Result_columnContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitResult_column(s) -func (s *Result_columnContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitResult_column(s) + default: + return t.VisitChildren(s) } } @@ -19210,15 +19107,13 @@ func (s *Join_operatorContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Join_operatorContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterJoin_operator(s) - } -} +func (s *Join_operatorContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitJoin_operator(s) -func (s *Join_operatorContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitJoin_operator(s) + default: + return t.VisitChildren(s) } } @@ -19496,15 +19391,13 @@ func (s *Join_constraintContext) ToStringTree(ruleNames []string, recog antlr.Re return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Join_constraintContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterJoin_constraint(s) - } -} +func (s *Join_constraintContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitJoin_constraint(s) -func (s *Join_constraintContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitJoin_constraint(s) + default: + return t.VisitChildren(s) } } @@ -19685,15 +19578,13 @@ func (s *Compound_operatorContext) ToStringTree(ruleNames []string, recog antlr. return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Compound_operatorContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCompound_operator(s) - } -} +func (s *Compound_operatorContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCompound_operator(s) -func (s *Compound_operatorContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCompound_operator(s) + default: + return t.VisitChildren(s) } } @@ -20141,15 +20032,13 @@ func (s *Update_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Update_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterUpdate_stmt(s) - } -} +func (s *Update_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitUpdate_stmt(s) -func (s *Update_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitUpdate_stmt(s) + default: + return t.VisitChildren(s) } } @@ -20546,15 +20435,13 @@ func (s *Column_name_listContext) ToStringTree(ruleNames []string, recog antlr.R return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Column_name_listContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterColumn_name_list(s) - } -} +func (s *Column_name_listContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitColumn_name_list(s) -func (s *Column_name_listContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitColumn_name_list(s) + default: + return t.VisitChildren(s) } } @@ -20958,15 +20845,13 @@ func (s *Update_stmt_limitedContext) ToStringTree(ruleNames []string, recog antl return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Update_stmt_limitedContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterUpdate_stmt_limited(s) - } -} +func (s *Update_stmt_limitedContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitUpdate_stmt_limited(s) -func (s *Update_stmt_limitedContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitUpdate_stmt_limited(s) + default: + return t.VisitChildren(s) } } @@ -21353,15 +21238,13 @@ func (s *Qualified_table_nameContext) ToStringTree(ruleNames []string, recog ant return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Qualified_table_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterQualified_table_name(s) - } -} +func (s *Qualified_table_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitQualified_table_name(s) -func (s *Qualified_table_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitQualified_table_name(s) + default: + return t.VisitChildren(s) } } @@ -21578,15 +21461,13 @@ func (s *Vacuum_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Vacuum_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterVacuum_stmt(s) - } -} +func (s *Vacuum_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitVacuum_stmt(s) -func (s *Vacuum_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitVacuum_stmt(s) + default: + return t.VisitChildren(s) } } @@ -21742,15 +21623,13 @@ func (s *Filter_clauseContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Filter_clauseContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterFilter_clause(s) - } -} +func (s *Filter_clauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitFilter_clause(s) -func (s *Filter_clauseContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitFilter_clause(s) + default: + return t.VisitChildren(s) } } @@ -22021,15 +21900,13 @@ func (s *Window_defnContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Window_defnContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterWindow_defn(s) - } -} +func (s *Window_defnContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitWindow_defn(s) -func (s *Window_defnContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitWindow_defn(s) + default: + return t.VisitChildren(s) } } @@ -22438,15 +22315,13 @@ func (s *Over_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Over_clauseContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterOver_clause(s) - } -} +func (s *Over_clauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitOver_clause(s) -func (s *Over_clauseContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitOver_clause(s) + default: + return t.VisitChildren(s) } } @@ -22759,15 +22634,13 @@ func (s *Frame_specContext) ToStringTree(ruleNames []string, recog antlr.Recogni return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Frame_specContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterFrame_spec(s) - } -} +func (s *Frame_specContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitFrame_spec(s) -func (s *Frame_specContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitFrame_spec(s) + default: + return t.VisitChildren(s) } } @@ -23009,15 +22882,13 @@ func (s *Frame_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recog return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Frame_clauseContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterFrame_clause(s) - } -} +func (s *Frame_clauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitFrame_clause(s) -func (s *Frame_clauseContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitFrame_clause(s) + default: + return t.VisitChildren(s) } } @@ -23232,15 +23103,13 @@ func (s *Simple_function_invocationContext) ToStringTree(ruleNames []string, rec return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Simple_function_invocationContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterSimple_function_invocation(s) - } -} +func (s *Simple_function_invocationContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitSimple_function_invocation(s) -func (s *Simple_function_invocationContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitSimple_function_invocation(s) + default: + return t.VisitChildren(s) } } @@ -23499,15 +23368,13 @@ func (s *Aggregate_function_invocationContext) ToStringTree(ruleNames []string, return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Aggregate_function_invocationContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterAggregate_function_invocation(s) - } -} +func (s *Aggregate_function_invocationContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitAggregate_function_invocation(s) -func (s *Aggregate_function_invocationContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitAggregate_function_invocation(s) + default: + return t.VisitChildren(s) } } @@ -23829,15 +23696,13 @@ func (s *Window_function_invocationContext) ToStringTree(ruleNames []string, rec return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Window_function_invocationContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterWindow_function_invocation(s) - } -} +func (s *Window_function_invocationContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitWindow_function_invocation(s) -func (s *Window_function_invocationContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitWindow_function_invocation(s) + default: + return t.VisitChildren(s) } } @@ -24095,15 +23960,13 @@ func (s *Common_table_stmtContext) ToStringTree(ruleNames []string, recog antlr. return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Common_table_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCommon_table_stmt(s) - } -} +func (s *Common_table_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCommon_table_stmt(s) -func (s *Common_table_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCommon_table_stmt(s) + default: + return t.VisitChildren(s) } } @@ -24299,15 +24162,13 @@ func (s *Order_by_stmtContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Order_by_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterOrder_by_stmt(s) - } -} +func (s *Order_by_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitOrder_by_stmt(s) -func (s *Order_by_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitOrder_by_stmt(s) + default: + return t.VisitChildren(s) } } @@ -24490,15 +24351,13 @@ func (s *Limit_stmtContext) ToStringTree(ruleNames []string, recog antlr.Recogni return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Limit_stmtContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterLimit_stmt(s) - } -} +func (s *Limit_stmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitLimit_stmt(s) -func (s *Limit_stmtContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitLimit_stmt(s) + default: + return t.VisitChildren(s) } } @@ -24683,15 +24542,13 @@ func (s *Ordering_termContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Ordering_termContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterOrdering_term(s) - } -} +func (s *Ordering_termContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitOrdering_term(s) -func (s *Ordering_termContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitOrdering_term(s) + default: + return t.VisitChildren(s) } } @@ -24847,15 +24704,13 @@ func (s *Asc_descContext) ToStringTree(ruleNames []string, recog antlr.Recognize return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Asc_descContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterAsc_desc(s) - } -} +func (s *Asc_descContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitAsc_desc(s) -func (s *Asc_descContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitAsc_desc(s) + default: + return t.VisitChildren(s) } } @@ -24985,15 +24840,13 @@ func (s *Frame_leftContext) ToStringTree(ruleNames []string, recog antlr.Recogni return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Frame_leftContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterFrame_left(s) - } -} +func (s *Frame_leftContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitFrame_left(s) -func (s *Frame_leftContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitFrame_left(s) + default: + return t.VisitChildren(s) } } @@ -25187,15 +25040,13 @@ func (s *Frame_rightContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Frame_rightContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterFrame_right(s) - } -} +func (s *Frame_rightContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitFrame_right(s) -func (s *Frame_rightContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitFrame_right(s) + default: + return t.VisitChildren(s) } } @@ -25384,15 +25235,13 @@ func (s *Frame_singleContext) ToStringTree(ruleNames []string, recog antlr.Recog return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Frame_singleContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterFrame_single(s) - } -} +func (s *Frame_singleContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitFrame_single(s) -func (s *Frame_singleContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitFrame_single(s) + default: + return t.VisitChildren(s) } } @@ -25750,15 +25599,13 @@ func (s *Window_functionContext) ToStringTree(ruleNames []string, recog antlr.Re return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Window_functionContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterWindow_function(s) - } -} +func (s *Window_functionContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitWindow_function(s) -func (s *Window_functionContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitWindow_function(s) + default: + return t.VisitChildren(s) } } @@ -26385,15 +26232,13 @@ func (s *OffsetContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *OffsetContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterOffset(s) - } -} +func (s *OffsetContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitOffset(s) -func (s *OffsetContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitOffset(s) + default: + return t.VisitChildren(s) } } @@ -26502,15 +26347,13 @@ func (s *Default_valueContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Default_valueContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterDefault_value(s) - } -} +func (s *Default_valueContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitDefault_value(s) -func (s *Default_valueContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitDefault_value(s) + default: + return t.VisitChildren(s) } } @@ -26650,15 +26493,13 @@ func (s *Partition_byContext) ToStringTree(ruleNames []string, recog antlr.Recog return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Partition_byContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterPartition_by(s) - } -} +func (s *Partition_byContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitPartition_by(s) -func (s *Partition_byContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitPartition_by(s) + default: + return t.VisitChildren(s) } } @@ -26830,15 +26671,13 @@ func (s *Order_by_exprContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Order_by_exprContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterOrder_by_expr(s) - } -} +func (s *Order_by_exprContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitOrder_by_expr(s) -func (s *Order_by_exprContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitOrder_by_expr(s) + default: + return t.VisitChildren(s) } } @@ -26978,15 +26817,13 @@ func (s *Order_by_expr_asc_descContext) ToStringTree(ruleNames []string, recog a return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Order_by_expr_asc_descContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterOrder_by_expr_asc_desc(s) - } -} +func (s *Order_by_expr_asc_descContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitOrder_by_expr_asc_desc(s) -func (s *Order_by_expr_asc_descContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitOrder_by_expr_asc_desc(s) + default: + return t.VisitChildren(s) } } @@ -27177,15 +27014,13 @@ func (s *Expr_asc_descContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Expr_asc_descContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterExpr_asc_desc(s) - } -} +func (s *Expr_asc_descContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitExpr_asc_desc(s) -func (s *Expr_asc_descContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitExpr_asc_desc(s) + default: + return t.VisitChildren(s) } } @@ -27339,15 +27174,13 @@ func (s *Initial_selectContext) ToStringTree(ruleNames []string, recog antlr.Rec return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Initial_selectContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterInitial_select(s) - } -} +func (s *Initial_selectContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitInitial_select(s) -func (s *Initial_selectContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitInitial_select(s) + default: + return t.VisitChildren(s) } } @@ -27443,15 +27276,13 @@ func (s *Recursive_selectContext) ToStringTree(ruleNames []string, recog antlr.R return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Recursive_selectContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterRecursive_select(s) - } -} +func (s *Recursive_selectContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitRecursive_select(s) -func (s *Recursive_selectContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitRecursive_select(s) + default: + return t.VisitChildren(s) } } @@ -27550,15 +27381,13 @@ func (s *Unary_operatorContext) ToStringTree(ruleNames []string, recog antlr.Rec return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Unary_operatorContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterUnary_operator(s) - } -} +func (s *Unary_operatorContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitUnary_operator(s) -func (s *Unary_operatorContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitUnary_operator(s) + default: + return t.VisitChildren(s) } } @@ -27651,15 +27480,13 @@ func (s *Error_messageContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Error_messageContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterError_message(s) - } -} +func (s *Error_messageContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitError_message(s) -func (s *Error_messageContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitError_message(s) + default: + return t.VisitChildren(s) } } @@ -27776,15 +27603,13 @@ func (s *Module_argumentContext) ToStringTree(ruleNames []string, recog antlr.Re return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Module_argumentContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterModule_argument(s) - } -} +func (s *Module_argumentContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitModule_argument(s) -func (s *Module_argumentContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitModule_argument(s) + default: + return t.VisitChildren(s) } } @@ -27892,15 +27717,13 @@ func (s *Column_aliasContext) ToStringTree(ruleNames []string, recog antlr.Recog return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Column_aliasContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterColumn_alias(s) - } -} +func (s *Column_aliasContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitColumn_alias(s) -func (s *Column_aliasContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitColumn_alias(s) + default: + return t.VisitChildren(s) } } @@ -28763,15 +28586,13 @@ func (s *KeywordContext) ToStringTree(ruleNames []string, recog antlr.Recognizer return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *KeywordContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterKeyword(s) - } -} +func (s *KeywordContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitKeyword(s) -func (s *KeywordContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitKeyword(s) + default: + return t.VisitChildren(s) } } @@ -28876,15 +28697,13 @@ func (s *NameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) s return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *NameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterName(s) - } -} +func (s *NameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitName(s) -func (s *NameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitName(s) + default: + return t.VisitChildren(s) } } @@ -28980,15 +28799,13 @@ func (s *Function_nameContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Function_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterFunction_name(s) - } -} +func (s *Function_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitFunction_name(s) -func (s *Function_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitFunction_name(s) + default: + return t.VisitChildren(s) } } @@ -29084,15 +28901,13 @@ func (s *Schema_nameContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Schema_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterSchema_name(s) - } -} +func (s *Schema_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitSchema_name(s) -func (s *Schema_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitSchema_name(s) + default: + return t.VisitChildren(s) } } @@ -29188,15 +29003,13 @@ func (s *Table_nameContext) ToStringTree(ruleNames []string, recog antlr.Recogni return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Table_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterTable_name(s) - } -} +func (s *Table_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitTable_name(s) -func (s *Table_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitTable_name(s) + default: + return t.VisitChildren(s) } } @@ -29292,15 +29105,13 @@ func (s *Table_or_index_nameContext) ToStringTree(ruleNames []string, recog antl return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Table_or_index_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterTable_or_index_name(s) - } -} +func (s *Table_or_index_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitTable_or_index_name(s) -func (s *Table_or_index_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitTable_or_index_name(s) + default: + return t.VisitChildren(s) } } @@ -29396,15 +29207,13 @@ func (s *Column_nameContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Column_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterColumn_name(s) - } -} +func (s *Column_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitColumn_name(s) -func (s *Column_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitColumn_name(s) + default: + return t.VisitChildren(s) } } @@ -29500,15 +29309,13 @@ func (s *Collation_nameContext) ToStringTree(ruleNames []string, recog antlr.Rec return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Collation_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterCollation_name(s) - } -} +func (s *Collation_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitCollation_name(s) -func (s *Collation_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitCollation_name(s) + default: + return t.VisitChildren(s) } } @@ -29604,15 +29411,13 @@ func (s *Foreign_tableContext) ToStringTree(ruleNames []string, recog antlr.Reco return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Foreign_tableContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterForeign_table(s) - } -} +func (s *Foreign_tableContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitForeign_table(s) -func (s *Foreign_tableContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitForeign_table(s) + default: + return t.VisitChildren(s) } } @@ -29708,15 +29513,13 @@ func (s *Index_nameContext) ToStringTree(ruleNames []string, recog antlr.Recogni return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Index_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterIndex_name(s) - } -} +func (s *Index_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitIndex_name(s) -func (s *Index_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitIndex_name(s) + default: + return t.VisitChildren(s) } } @@ -29812,15 +29615,13 @@ func (s *Trigger_nameContext) ToStringTree(ruleNames []string, recog antlr.Recog return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Trigger_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterTrigger_name(s) - } -} +func (s *Trigger_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitTrigger_name(s) -func (s *Trigger_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitTrigger_name(s) + default: + return t.VisitChildren(s) } } @@ -29916,15 +29717,13 @@ func (s *View_nameContext) ToStringTree(ruleNames []string, recog antlr.Recogniz return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *View_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterView_name(s) - } -} +func (s *View_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitView_name(s) -func (s *View_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitView_name(s) + default: + return t.VisitChildren(s) } } @@ -30020,15 +29819,13 @@ func (s *Module_nameContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Module_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterModule_name(s) - } -} +func (s *Module_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitModule_name(s) -func (s *Module_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitModule_name(s) + default: + return t.VisitChildren(s) } } @@ -30124,15 +29921,13 @@ func (s *Pragma_nameContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Pragma_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterPragma_name(s) - } -} +func (s *Pragma_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitPragma_name(s) -func (s *Pragma_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitPragma_name(s) + default: + return t.VisitChildren(s) } } @@ -30228,15 +30023,13 @@ func (s *Savepoint_nameContext) ToStringTree(ruleNames []string, recog antlr.Rec return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Savepoint_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterSavepoint_name(s) - } -} +func (s *Savepoint_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitSavepoint_name(s) -func (s *Savepoint_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitSavepoint_name(s) + default: + return t.VisitChildren(s) } } @@ -30332,15 +30125,13 @@ func (s *Table_aliasContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Table_aliasContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterTable_alias(s) - } -} +func (s *Table_aliasContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitTable_alias(s) -func (s *Table_aliasContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitTable_alias(s) + default: + return t.VisitChildren(s) } } @@ -30436,15 +30227,13 @@ func (s *Transaction_nameContext) ToStringTree(ruleNames []string, recog antlr.R return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Transaction_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterTransaction_name(s) - } -} +func (s *Transaction_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitTransaction_name(s) -func (s *Transaction_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitTransaction_name(s) + default: + return t.VisitChildren(s) } } @@ -30540,15 +30329,13 @@ func (s *Window_nameContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Window_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterWindow_name(s) - } -} +func (s *Window_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitWindow_name(s) -func (s *Window_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitWindow_name(s) + default: + return t.VisitChildren(s) } } @@ -30644,15 +30431,13 @@ func (s *AliasContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *AliasContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterAlias(s) - } -} +func (s *AliasContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitAlias(s) -func (s *AliasContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitAlias(s) + default: + return t.VisitChildren(s) } } @@ -30748,15 +30533,13 @@ func (s *FilenameContext) ToStringTree(ruleNames []string, recog antlr.Recognize return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *FilenameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterFilename(s) - } -} +func (s *FilenameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitFilename(s) -func (s *FilenameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitFilename(s) + default: + return t.VisitChildren(s) } } @@ -30852,15 +30635,13 @@ func (s *Base_window_nameContext) ToStringTree(ruleNames []string, recog antlr.R return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Base_window_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterBase_window_name(s) - } -} +func (s *Base_window_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitBase_window_name(s) -func (s *Base_window_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitBase_window_name(s) + default: + return t.VisitChildren(s) } } @@ -30956,15 +30737,13 @@ func (s *Simple_funcContext) ToStringTree(ruleNames []string, recog antlr.Recogn return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Simple_funcContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterSimple_func(s) - } -} +func (s *Simple_funcContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitSimple_func(s) -func (s *Simple_funcContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitSimple_func(s) + default: + return t.VisitChildren(s) } } @@ -31060,15 +30839,13 @@ func (s *Aggregate_funcContext) ToStringTree(ruleNames []string, recog antlr.Rec return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Aggregate_funcContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterAggregate_func(s) - } -} +func (s *Aggregate_funcContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitAggregate_func(s) -func (s *Aggregate_funcContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitAggregate_func(s) + default: + return t.VisitChildren(s) } } @@ -31164,15 +30941,13 @@ func (s *Table_function_nameContext) ToStringTree(ruleNames []string, recog antl return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Table_function_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterTable_function_name(s) - } -} +func (s *Table_function_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitTable_function_name(s) -func (s *Table_function_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitTable_function_name(s) + default: + return t.VisitChildren(s) } } @@ -31305,15 +31080,13 @@ func (s *Any_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognize return antlr.TreesStringTree(s, ruleNames, recog) } -func (s *Any_nameContext) EnterRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.EnterAny_name(s) - } -} +func (s *Any_nameContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case SQLiteParserVisitor: + return t.VisitAny_name(s) -func (s *Any_nameContext) ExitRule(listener antlr.ParseTreeListener) { - if listenerT, ok := listener.(SQLiteParserListener); ok { - listenerT.ExitAny_name(s) + default: + return t.VisitChildren(s) } } diff --git a/go/internal/antlr4_sqlite_parser/sqliteparser_base_listener.go b/go/internal/antlr4_sqlite_parser/sqliteparser_base_listener.go deleted file mode 100644 index 69263ef..0000000 --- a/go/internal/antlr4_sqlite_parser/sqliteparser_base_listener.go +++ /dev/null @@ -1,709 +0,0 @@ -// Code generated from SQLiteParser.g4 by ANTLR 4.13.2. DO NOT EDIT. - -package parser // SQLiteParser - -import "github.com/antlr4-go/antlr/v4" - -// BaseSQLiteParserListener is a complete listener for a parse tree produced by SQLiteParser. -type BaseSQLiteParserListener struct{} - -var _ SQLiteParserListener = &BaseSQLiteParserListener{} - -// VisitTerminal is called when a terminal node is visited. -func (s *BaseSQLiteParserListener) VisitTerminal(node antlr.TerminalNode) {} - -// VisitErrorNode is called when an error node is visited. -func (s *BaseSQLiteParserListener) VisitErrorNode(node antlr.ErrorNode) {} - -// EnterEveryRule is called when any rule is entered. -func (s *BaseSQLiteParserListener) EnterEveryRule(ctx antlr.ParserRuleContext) {} - -// ExitEveryRule is called when any rule is exited. -func (s *BaseSQLiteParserListener) ExitEveryRule(ctx antlr.ParserRuleContext) {} - -// EnterParse is called when production parse is entered. -func (s *BaseSQLiteParserListener) EnterParse(ctx *ParseContext) {} - -// ExitParse is called when production parse is exited. -func (s *BaseSQLiteParserListener) ExitParse(ctx *ParseContext) {} - -// EnterSql_stmt_list is called when production sql_stmt_list is entered. -func (s *BaseSQLiteParserListener) EnterSql_stmt_list(ctx *Sql_stmt_listContext) {} - -// ExitSql_stmt_list is called when production sql_stmt_list is exited. -func (s *BaseSQLiteParserListener) ExitSql_stmt_list(ctx *Sql_stmt_listContext) {} - -// EnterSql_stmt is called when production sql_stmt is entered. -func (s *BaseSQLiteParserListener) EnterSql_stmt(ctx *Sql_stmtContext) {} - -// ExitSql_stmt is called when production sql_stmt is exited. -func (s *BaseSQLiteParserListener) ExitSql_stmt(ctx *Sql_stmtContext) {} - -// EnterAlter_table_stmt is called when production alter_table_stmt is entered. -func (s *BaseSQLiteParserListener) EnterAlter_table_stmt(ctx *Alter_table_stmtContext) {} - -// ExitAlter_table_stmt is called when production alter_table_stmt is exited. -func (s *BaseSQLiteParserListener) ExitAlter_table_stmt(ctx *Alter_table_stmtContext) {} - -// EnterAnalyze_stmt is called when production analyze_stmt is entered. -func (s *BaseSQLiteParserListener) EnterAnalyze_stmt(ctx *Analyze_stmtContext) {} - -// ExitAnalyze_stmt is called when production analyze_stmt is exited. -func (s *BaseSQLiteParserListener) ExitAnalyze_stmt(ctx *Analyze_stmtContext) {} - -// EnterAttach_stmt is called when production attach_stmt is entered. -func (s *BaseSQLiteParserListener) EnterAttach_stmt(ctx *Attach_stmtContext) {} - -// ExitAttach_stmt is called when production attach_stmt is exited. -func (s *BaseSQLiteParserListener) ExitAttach_stmt(ctx *Attach_stmtContext) {} - -// EnterBegin_stmt is called when production begin_stmt is entered. -func (s *BaseSQLiteParserListener) EnterBegin_stmt(ctx *Begin_stmtContext) {} - -// ExitBegin_stmt is called when production begin_stmt is exited. -func (s *BaseSQLiteParserListener) ExitBegin_stmt(ctx *Begin_stmtContext) {} - -// EnterCommit_stmt is called when production commit_stmt is entered. -func (s *BaseSQLiteParserListener) EnterCommit_stmt(ctx *Commit_stmtContext) {} - -// ExitCommit_stmt is called when production commit_stmt is exited. -func (s *BaseSQLiteParserListener) ExitCommit_stmt(ctx *Commit_stmtContext) {} - -// EnterRollback_stmt is called when production rollback_stmt is entered. -func (s *BaseSQLiteParserListener) EnterRollback_stmt(ctx *Rollback_stmtContext) {} - -// ExitRollback_stmt is called when production rollback_stmt is exited. -func (s *BaseSQLiteParserListener) ExitRollback_stmt(ctx *Rollback_stmtContext) {} - -// EnterSavepoint_stmt is called when production savepoint_stmt is entered. -func (s *BaseSQLiteParserListener) EnterSavepoint_stmt(ctx *Savepoint_stmtContext) {} - -// ExitSavepoint_stmt is called when production savepoint_stmt is exited. -func (s *BaseSQLiteParserListener) ExitSavepoint_stmt(ctx *Savepoint_stmtContext) {} - -// EnterRelease_stmt is called when production release_stmt is entered. -func (s *BaseSQLiteParserListener) EnterRelease_stmt(ctx *Release_stmtContext) {} - -// ExitRelease_stmt is called when production release_stmt is exited. -func (s *BaseSQLiteParserListener) ExitRelease_stmt(ctx *Release_stmtContext) {} - -// EnterCreate_index_stmt is called when production create_index_stmt is entered. -func (s *BaseSQLiteParserListener) EnterCreate_index_stmt(ctx *Create_index_stmtContext) {} - -// ExitCreate_index_stmt is called when production create_index_stmt is exited. -func (s *BaseSQLiteParserListener) ExitCreate_index_stmt(ctx *Create_index_stmtContext) {} - -// EnterIndexed_column is called when production indexed_column is entered. -func (s *BaseSQLiteParserListener) EnterIndexed_column(ctx *Indexed_columnContext) {} - -// ExitIndexed_column is called when production indexed_column is exited. -func (s *BaseSQLiteParserListener) ExitIndexed_column(ctx *Indexed_columnContext) {} - -// EnterCreate_table_stmt is called when production create_table_stmt is entered. -func (s *BaseSQLiteParserListener) EnterCreate_table_stmt(ctx *Create_table_stmtContext) {} - -// ExitCreate_table_stmt is called when production create_table_stmt is exited. -func (s *BaseSQLiteParserListener) ExitCreate_table_stmt(ctx *Create_table_stmtContext) {} - -// EnterColumn_def is called when production column_def is entered. -func (s *BaseSQLiteParserListener) EnterColumn_def(ctx *Column_defContext) {} - -// ExitColumn_def is called when production column_def is exited. -func (s *BaseSQLiteParserListener) ExitColumn_def(ctx *Column_defContext) {} - -// EnterType_name is called when production type_name is entered. -func (s *BaseSQLiteParserListener) EnterType_name(ctx *Type_nameContext) {} - -// ExitType_name is called when production type_name is exited. -func (s *BaseSQLiteParserListener) ExitType_name(ctx *Type_nameContext) {} - -// EnterColumn_constraint is called when production column_constraint is entered. -func (s *BaseSQLiteParserListener) EnterColumn_constraint(ctx *Column_constraintContext) {} - -// ExitColumn_constraint is called when production column_constraint is exited. -func (s *BaseSQLiteParserListener) ExitColumn_constraint(ctx *Column_constraintContext) {} - -// EnterSigned_number is called when production signed_number is entered. -func (s *BaseSQLiteParserListener) EnterSigned_number(ctx *Signed_numberContext) {} - -// ExitSigned_number is called when production signed_number is exited. -func (s *BaseSQLiteParserListener) ExitSigned_number(ctx *Signed_numberContext) {} - -// EnterTable_constraint is called when production table_constraint is entered. -func (s *BaseSQLiteParserListener) EnterTable_constraint(ctx *Table_constraintContext) {} - -// ExitTable_constraint is called when production table_constraint is exited. -func (s *BaseSQLiteParserListener) ExitTable_constraint(ctx *Table_constraintContext) {} - -// EnterForeign_key_clause is called when production foreign_key_clause is entered. -func (s *BaseSQLiteParserListener) EnterForeign_key_clause(ctx *Foreign_key_clauseContext) {} - -// ExitForeign_key_clause is called when production foreign_key_clause is exited. -func (s *BaseSQLiteParserListener) ExitForeign_key_clause(ctx *Foreign_key_clauseContext) {} - -// EnterConflict_clause is called when production conflict_clause is entered. -func (s *BaseSQLiteParserListener) EnterConflict_clause(ctx *Conflict_clauseContext) {} - -// ExitConflict_clause is called when production conflict_clause is exited. -func (s *BaseSQLiteParserListener) ExitConflict_clause(ctx *Conflict_clauseContext) {} - -// EnterCreate_trigger_stmt is called when production create_trigger_stmt is entered. -func (s *BaseSQLiteParserListener) EnterCreate_trigger_stmt(ctx *Create_trigger_stmtContext) {} - -// ExitCreate_trigger_stmt is called when production create_trigger_stmt is exited. -func (s *BaseSQLiteParserListener) ExitCreate_trigger_stmt(ctx *Create_trigger_stmtContext) {} - -// EnterCreate_view_stmt is called when production create_view_stmt is entered. -func (s *BaseSQLiteParserListener) EnterCreate_view_stmt(ctx *Create_view_stmtContext) {} - -// ExitCreate_view_stmt is called when production create_view_stmt is exited. -func (s *BaseSQLiteParserListener) ExitCreate_view_stmt(ctx *Create_view_stmtContext) {} - -// EnterCreate_virtual_table_stmt is called when production create_virtual_table_stmt is entered. -func (s *BaseSQLiteParserListener) EnterCreate_virtual_table_stmt(ctx *Create_virtual_table_stmtContext) { -} - -// ExitCreate_virtual_table_stmt is called when production create_virtual_table_stmt is exited. -func (s *BaseSQLiteParserListener) ExitCreate_virtual_table_stmt(ctx *Create_virtual_table_stmtContext) { -} - -// EnterWith_clause is called when production with_clause is entered. -func (s *BaseSQLiteParserListener) EnterWith_clause(ctx *With_clauseContext) {} - -// ExitWith_clause is called when production with_clause is exited. -func (s *BaseSQLiteParserListener) ExitWith_clause(ctx *With_clauseContext) {} - -// EnterCte_table_name is called when production cte_table_name is entered. -func (s *BaseSQLiteParserListener) EnterCte_table_name(ctx *Cte_table_nameContext) {} - -// ExitCte_table_name is called when production cte_table_name is exited. -func (s *BaseSQLiteParserListener) ExitCte_table_name(ctx *Cte_table_nameContext) {} - -// EnterRecursive_cte is called when production recursive_cte is entered. -func (s *BaseSQLiteParserListener) EnterRecursive_cte(ctx *Recursive_cteContext) {} - -// ExitRecursive_cte is called when production recursive_cte is exited. -func (s *BaseSQLiteParserListener) ExitRecursive_cte(ctx *Recursive_cteContext) {} - -// EnterCommon_table_expression is called when production common_table_expression is entered. -func (s *BaseSQLiteParserListener) EnterCommon_table_expression(ctx *Common_table_expressionContext) { -} - -// ExitCommon_table_expression is called when production common_table_expression is exited. -func (s *BaseSQLiteParserListener) ExitCommon_table_expression(ctx *Common_table_expressionContext) {} - -// EnterDelete_stmt is called when production delete_stmt is entered. -func (s *BaseSQLiteParserListener) EnterDelete_stmt(ctx *Delete_stmtContext) {} - -// ExitDelete_stmt is called when production delete_stmt is exited. -func (s *BaseSQLiteParserListener) ExitDelete_stmt(ctx *Delete_stmtContext) {} - -// EnterDelete_stmt_limited is called when production delete_stmt_limited is entered. -func (s *BaseSQLiteParserListener) EnterDelete_stmt_limited(ctx *Delete_stmt_limitedContext) {} - -// ExitDelete_stmt_limited is called when production delete_stmt_limited is exited. -func (s *BaseSQLiteParserListener) ExitDelete_stmt_limited(ctx *Delete_stmt_limitedContext) {} - -// EnterDetach_stmt is called when production detach_stmt is entered. -func (s *BaseSQLiteParserListener) EnterDetach_stmt(ctx *Detach_stmtContext) {} - -// ExitDetach_stmt is called when production detach_stmt is exited. -func (s *BaseSQLiteParserListener) ExitDetach_stmt(ctx *Detach_stmtContext) {} - -// EnterDrop_stmt is called when production drop_stmt is entered. -func (s *BaseSQLiteParserListener) EnterDrop_stmt(ctx *Drop_stmtContext) {} - -// ExitDrop_stmt is called when production drop_stmt is exited. -func (s *BaseSQLiteParserListener) ExitDrop_stmt(ctx *Drop_stmtContext) {} - -// EnterExpr is called when production expr is entered. -func (s *BaseSQLiteParserListener) EnterExpr(ctx *ExprContext) {} - -// ExitExpr is called when production expr is exited. -func (s *BaseSQLiteParserListener) ExitExpr(ctx *ExprContext) {} - -// EnterRaise_function is called when production raise_function is entered. -func (s *BaseSQLiteParserListener) EnterRaise_function(ctx *Raise_functionContext) {} - -// ExitRaise_function is called when production raise_function is exited. -func (s *BaseSQLiteParserListener) ExitRaise_function(ctx *Raise_functionContext) {} - -// EnterLiteral_value is called when production literal_value is entered. -func (s *BaseSQLiteParserListener) EnterLiteral_value(ctx *Literal_valueContext) {} - -// ExitLiteral_value is called when production literal_value is exited. -func (s *BaseSQLiteParserListener) ExitLiteral_value(ctx *Literal_valueContext) {} - -// EnterValue_row is called when production value_row is entered. -func (s *BaseSQLiteParserListener) EnterValue_row(ctx *Value_rowContext) {} - -// ExitValue_row is called when production value_row is exited. -func (s *BaseSQLiteParserListener) ExitValue_row(ctx *Value_rowContext) {} - -// EnterValues_clause is called when production values_clause is entered. -func (s *BaseSQLiteParserListener) EnterValues_clause(ctx *Values_clauseContext) {} - -// ExitValues_clause is called when production values_clause is exited. -func (s *BaseSQLiteParserListener) ExitValues_clause(ctx *Values_clauseContext) {} - -// EnterInsert_stmt is called when production insert_stmt is entered. -func (s *BaseSQLiteParserListener) EnterInsert_stmt(ctx *Insert_stmtContext) {} - -// ExitInsert_stmt is called when production insert_stmt is exited. -func (s *BaseSQLiteParserListener) ExitInsert_stmt(ctx *Insert_stmtContext) {} - -// EnterReturning_clause is called when production returning_clause is entered. -func (s *BaseSQLiteParserListener) EnterReturning_clause(ctx *Returning_clauseContext) {} - -// ExitReturning_clause is called when production returning_clause is exited. -func (s *BaseSQLiteParserListener) ExitReturning_clause(ctx *Returning_clauseContext) {} - -// EnterUpsert_clause is called when production upsert_clause is entered. -func (s *BaseSQLiteParserListener) EnterUpsert_clause(ctx *Upsert_clauseContext) {} - -// ExitUpsert_clause is called when production upsert_clause is exited. -func (s *BaseSQLiteParserListener) ExitUpsert_clause(ctx *Upsert_clauseContext) {} - -// EnterPragma_stmt is called when production pragma_stmt is entered. -func (s *BaseSQLiteParserListener) EnterPragma_stmt(ctx *Pragma_stmtContext) {} - -// ExitPragma_stmt is called when production pragma_stmt is exited. -func (s *BaseSQLiteParserListener) ExitPragma_stmt(ctx *Pragma_stmtContext) {} - -// EnterPragma_value is called when production pragma_value is entered. -func (s *BaseSQLiteParserListener) EnterPragma_value(ctx *Pragma_valueContext) {} - -// ExitPragma_value is called when production pragma_value is exited. -func (s *BaseSQLiteParserListener) ExitPragma_value(ctx *Pragma_valueContext) {} - -// EnterReindex_stmt is called when production reindex_stmt is entered. -func (s *BaseSQLiteParserListener) EnterReindex_stmt(ctx *Reindex_stmtContext) {} - -// ExitReindex_stmt is called when production reindex_stmt is exited. -func (s *BaseSQLiteParserListener) ExitReindex_stmt(ctx *Reindex_stmtContext) {} - -// EnterSelect_stmt is called when production select_stmt is entered. -func (s *BaseSQLiteParserListener) EnterSelect_stmt(ctx *Select_stmtContext) {} - -// ExitSelect_stmt is called when production select_stmt is exited. -func (s *BaseSQLiteParserListener) ExitSelect_stmt(ctx *Select_stmtContext) {} - -// EnterJoin_clause is called when production join_clause is entered. -func (s *BaseSQLiteParserListener) EnterJoin_clause(ctx *Join_clauseContext) {} - -// ExitJoin_clause is called when production join_clause is exited. -func (s *BaseSQLiteParserListener) ExitJoin_clause(ctx *Join_clauseContext) {} - -// EnterSelect_core is called when production select_core is entered. -func (s *BaseSQLiteParserListener) EnterSelect_core(ctx *Select_coreContext) {} - -// ExitSelect_core is called when production select_core is exited. -func (s *BaseSQLiteParserListener) ExitSelect_core(ctx *Select_coreContext) {} - -// EnterFactored_select_stmt is called when production factored_select_stmt is entered. -func (s *BaseSQLiteParserListener) EnterFactored_select_stmt(ctx *Factored_select_stmtContext) {} - -// ExitFactored_select_stmt is called when production factored_select_stmt is exited. -func (s *BaseSQLiteParserListener) ExitFactored_select_stmt(ctx *Factored_select_stmtContext) {} - -// EnterSimple_select_stmt is called when production simple_select_stmt is entered. -func (s *BaseSQLiteParserListener) EnterSimple_select_stmt(ctx *Simple_select_stmtContext) {} - -// ExitSimple_select_stmt is called when production simple_select_stmt is exited. -func (s *BaseSQLiteParserListener) ExitSimple_select_stmt(ctx *Simple_select_stmtContext) {} - -// EnterCompound_select_stmt is called when production compound_select_stmt is entered. -func (s *BaseSQLiteParserListener) EnterCompound_select_stmt(ctx *Compound_select_stmtContext) {} - -// ExitCompound_select_stmt is called when production compound_select_stmt is exited. -func (s *BaseSQLiteParserListener) ExitCompound_select_stmt(ctx *Compound_select_stmtContext) {} - -// EnterTable_or_subquery is called when production table_or_subquery is entered. -func (s *BaseSQLiteParserListener) EnterTable_or_subquery(ctx *Table_or_subqueryContext) {} - -// ExitTable_or_subquery is called when production table_or_subquery is exited. -func (s *BaseSQLiteParserListener) ExitTable_or_subquery(ctx *Table_or_subqueryContext) {} - -// EnterResult_column is called when production result_column is entered. -func (s *BaseSQLiteParserListener) EnterResult_column(ctx *Result_columnContext) {} - -// ExitResult_column is called when production result_column is exited. -func (s *BaseSQLiteParserListener) ExitResult_column(ctx *Result_columnContext) {} - -// EnterJoin_operator is called when production join_operator is entered. -func (s *BaseSQLiteParserListener) EnterJoin_operator(ctx *Join_operatorContext) {} - -// ExitJoin_operator is called when production join_operator is exited. -func (s *BaseSQLiteParserListener) ExitJoin_operator(ctx *Join_operatorContext) {} - -// EnterJoin_constraint is called when production join_constraint is entered. -func (s *BaseSQLiteParserListener) EnterJoin_constraint(ctx *Join_constraintContext) {} - -// ExitJoin_constraint is called when production join_constraint is exited. -func (s *BaseSQLiteParserListener) ExitJoin_constraint(ctx *Join_constraintContext) {} - -// EnterCompound_operator is called when production compound_operator is entered. -func (s *BaseSQLiteParserListener) EnterCompound_operator(ctx *Compound_operatorContext) {} - -// ExitCompound_operator is called when production compound_operator is exited. -func (s *BaseSQLiteParserListener) ExitCompound_operator(ctx *Compound_operatorContext) {} - -// EnterUpdate_stmt is called when production update_stmt is entered. -func (s *BaseSQLiteParserListener) EnterUpdate_stmt(ctx *Update_stmtContext) {} - -// ExitUpdate_stmt is called when production update_stmt is exited. -func (s *BaseSQLiteParserListener) ExitUpdate_stmt(ctx *Update_stmtContext) {} - -// EnterColumn_name_list is called when production column_name_list is entered. -func (s *BaseSQLiteParserListener) EnterColumn_name_list(ctx *Column_name_listContext) {} - -// ExitColumn_name_list is called when production column_name_list is exited. -func (s *BaseSQLiteParserListener) ExitColumn_name_list(ctx *Column_name_listContext) {} - -// EnterUpdate_stmt_limited is called when production update_stmt_limited is entered. -func (s *BaseSQLiteParserListener) EnterUpdate_stmt_limited(ctx *Update_stmt_limitedContext) {} - -// ExitUpdate_stmt_limited is called when production update_stmt_limited is exited. -func (s *BaseSQLiteParserListener) ExitUpdate_stmt_limited(ctx *Update_stmt_limitedContext) {} - -// EnterQualified_table_name is called when production qualified_table_name is entered. -func (s *BaseSQLiteParserListener) EnterQualified_table_name(ctx *Qualified_table_nameContext) {} - -// ExitQualified_table_name is called when production qualified_table_name is exited. -func (s *BaseSQLiteParserListener) ExitQualified_table_name(ctx *Qualified_table_nameContext) {} - -// EnterVacuum_stmt is called when production vacuum_stmt is entered. -func (s *BaseSQLiteParserListener) EnterVacuum_stmt(ctx *Vacuum_stmtContext) {} - -// ExitVacuum_stmt is called when production vacuum_stmt is exited. -func (s *BaseSQLiteParserListener) ExitVacuum_stmt(ctx *Vacuum_stmtContext) {} - -// EnterFilter_clause is called when production filter_clause is entered. -func (s *BaseSQLiteParserListener) EnterFilter_clause(ctx *Filter_clauseContext) {} - -// ExitFilter_clause is called when production filter_clause is exited. -func (s *BaseSQLiteParserListener) ExitFilter_clause(ctx *Filter_clauseContext) {} - -// EnterWindow_defn is called when production window_defn is entered. -func (s *BaseSQLiteParserListener) EnterWindow_defn(ctx *Window_defnContext) {} - -// ExitWindow_defn is called when production window_defn is exited. -func (s *BaseSQLiteParserListener) ExitWindow_defn(ctx *Window_defnContext) {} - -// EnterOver_clause is called when production over_clause is entered. -func (s *BaseSQLiteParserListener) EnterOver_clause(ctx *Over_clauseContext) {} - -// ExitOver_clause is called when production over_clause is exited. -func (s *BaseSQLiteParserListener) ExitOver_clause(ctx *Over_clauseContext) {} - -// EnterFrame_spec is called when production frame_spec is entered. -func (s *BaseSQLiteParserListener) EnterFrame_spec(ctx *Frame_specContext) {} - -// ExitFrame_spec is called when production frame_spec is exited. -func (s *BaseSQLiteParserListener) ExitFrame_spec(ctx *Frame_specContext) {} - -// EnterFrame_clause is called when production frame_clause is entered. -func (s *BaseSQLiteParserListener) EnterFrame_clause(ctx *Frame_clauseContext) {} - -// ExitFrame_clause is called when production frame_clause is exited. -func (s *BaseSQLiteParserListener) ExitFrame_clause(ctx *Frame_clauseContext) {} - -// EnterSimple_function_invocation is called when production simple_function_invocation is entered. -func (s *BaseSQLiteParserListener) EnterSimple_function_invocation(ctx *Simple_function_invocationContext) { -} - -// ExitSimple_function_invocation is called when production simple_function_invocation is exited. -func (s *BaseSQLiteParserListener) ExitSimple_function_invocation(ctx *Simple_function_invocationContext) { -} - -// EnterAggregate_function_invocation is called when production aggregate_function_invocation is entered. -func (s *BaseSQLiteParserListener) EnterAggregate_function_invocation(ctx *Aggregate_function_invocationContext) { -} - -// ExitAggregate_function_invocation is called when production aggregate_function_invocation is exited. -func (s *BaseSQLiteParserListener) ExitAggregate_function_invocation(ctx *Aggregate_function_invocationContext) { -} - -// EnterWindow_function_invocation is called when production window_function_invocation is entered. -func (s *BaseSQLiteParserListener) EnterWindow_function_invocation(ctx *Window_function_invocationContext) { -} - -// ExitWindow_function_invocation is called when production window_function_invocation is exited. -func (s *BaseSQLiteParserListener) ExitWindow_function_invocation(ctx *Window_function_invocationContext) { -} - -// EnterCommon_table_stmt is called when production common_table_stmt is entered. -func (s *BaseSQLiteParserListener) EnterCommon_table_stmt(ctx *Common_table_stmtContext) {} - -// ExitCommon_table_stmt is called when production common_table_stmt is exited. -func (s *BaseSQLiteParserListener) ExitCommon_table_stmt(ctx *Common_table_stmtContext) {} - -// EnterOrder_by_stmt is called when production order_by_stmt is entered. -func (s *BaseSQLiteParserListener) EnterOrder_by_stmt(ctx *Order_by_stmtContext) {} - -// ExitOrder_by_stmt is called when production order_by_stmt is exited. -func (s *BaseSQLiteParserListener) ExitOrder_by_stmt(ctx *Order_by_stmtContext) {} - -// EnterLimit_stmt is called when production limit_stmt is entered. -func (s *BaseSQLiteParserListener) EnterLimit_stmt(ctx *Limit_stmtContext) {} - -// ExitLimit_stmt is called when production limit_stmt is exited. -func (s *BaseSQLiteParserListener) ExitLimit_stmt(ctx *Limit_stmtContext) {} - -// EnterOrdering_term is called when production ordering_term is entered. -func (s *BaseSQLiteParserListener) EnterOrdering_term(ctx *Ordering_termContext) {} - -// ExitOrdering_term is called when production ordering_term is exited. -func (s *BaseSQLiteParserListener) ExitOrdering_term(ctx *Ordering_termContext) {} - -// EnterAsc_desc is called when production asc_desc is entered. -func (s *BaseSQLiteParserListener) EnterAsc_desc(ctx *Asc_descContext) {} - -// ExitAsc_desc is called when production asc_desc is exited. -func (s *BaseSQLiteParserListener) ExitAsc_desc(ctx *Asc_descContext) {} - -// EnterFrame_left is called when production frame_left is entered. -func (s *BaseSQLiteParserListener) EnterFrame_left(ctx *Frame_leftContext) {} - -// ExitFrame_left is called when production frame_left is exited. -func (s *BaseSQLiteParserListener) ExitFrame_left(ctx *Frame_leftContext) {} - -// EnterFrame_right is called when production frame_right is entered. -func (s *BaseSQLiteParserListener) EnterFrame_right(ctx *Frame_rightContext) {} - -// ExitFrame_right is called when production frame_right is exited. -func (s *BaseSQLiteParserListener) ExitFrame_right(ctx *Frame_rightContext) {} - -// EnterFrame_single is called when production frame_single is entered. -func (s *BaseSQLiteParserListener) EnterFrame_single(ctx *Frame_singleContext) {} - -// ExitFrame_single is called when production frame_single is exited. -func (s *BaseSQLiteParserListener) ExitFrame_single(ctx *Frame_singleContext) {} - -// EnterWindow_function is called when production window_function is entered. -func (s *BaseSQLiteParserListener) EnterWindow_function(ctx *Window_functionContext) {} - -// ExitWindow_function is called when production window_function is exited. -func (s *BaseSQLiteParserListener) ExitWindow_function(ctx *Window_functionContext) {} - -// EnterOffset is called when production offset is entered. -func (s *BaseSQLiteParserListener) EnterOffset(ctx *OffsetContext) {} - -// ExitOffset is called when production offset is exited. -func (s *BaseSQLiteParserListener) ExitOffset(ctx *OffsetContext) {} - -// EnterDefault_value is called when production default_value is entered. -func (s *BaseSQLiteParserListener) EnterDefault_value(ctx *Default_valueContext) {} - -// ExitDefault_value is called when production default_value is exited. -func (s *BaseSQLiteParserListener) ExitDefault_value(ctx *Default_valueContext) {} - -// EnterPartition_by is called when production partition_by is entered. -func (s *BaseSQLiteParserListener) EnterPartition_by(ctx *Partition_byContext) {} - -// ExitPartition_by is called when production partition_by is exited. -func (s *BaseSQLiteParserListener) ExitPartition_by(ctx *Partition_byContext) {} - -// EnterOrder_by_expr is called when production order_by_expr is entered. -func (s *BaseSQLiteParserListener) EnterOrder_by_expr(ctx *Order_by_exprContext) {} - -// ExitOrder_by_expr is called when production order_by_expr is exited. -func (s *BaseSQLiteParserListener) ExitOrder_by_expr(ctx *Order_by_exprContext) {} - -// EnterOrder_by_expr_asc_desc is called when production order_by_expr_asc_desc is entered. -func (s *BaseSQLiteParserListener) EnterOrder_by_expr_asc_desc(ctx *Order_by_expr_asc_descContext) {} - -// ExitOrder_by_expr_asc_desc is called when production order_by_expr_asc_desc is exited. -func (s *BaseSQLiteParserListener) ExitOrder_by_expr_asc_desc(ctx *Order_by_expr_asc_descContext) {} - -// EnterExpr_asc_desc is called when production expr_asc_desc is entered. -func (s *BaseSQLiteParserListener) EnterExpr_asc_desc(ctx *Expr_asc_descContext) {} - -// ExitExpr_asc_desc is called when production expr_asc_desc is exited. -func (s *BaseSQLiteParserListener) ExitExpr_asc_desc(ctx *Expr_asc_descContext) {} - -// EnterInitial_select is called when production initial_select is entered. -func (s *BaseSQLiteParserListener) EnterInitial_select(ctx *Initial_selectContext) {} - -// ExitInitial_select is called when production initial_select is exited. -func (s *BaseSQLiteParserListener) ExitInitial_select(ctx *Initial_selectContext) {} - -// EnterRecursive_select is called when production recursive_select is entered. -func (s *BaseSQLiteParserListener) EnterRecursive_select(ctx *Recursive_selectContext) {} - -// ExitRecursive_select is called when production recursive_select is exited. -func (s *BaseSQLiteParserListener) ExitRecursive_select(ctx *Recursive_selectContext) {} - -// EnterUnary_operator is called when production unary_operator is entered. -func (s *BaseSQLiteParserListener) EnterUnary_operator(ctx *Unary_operatorContext) {} - -// ExitUnary_operator is called when production unary_operator is exited. -func (s *BaseSQLiteParserListener) ExitUnary_operator(ctx *Unary_operatorContext) {} - -// EnterError_message is called when production error_message is entered. -func (s *BaseSQLiteParserListener) EnterError_message(ctx *Error_messageContext) {} - -// ExitError_message is called when production error_message is exited. -func (s *BaseSQLiteParserListener) ExitError_message(ctx *Error_messageContext) {} - -// EnterModule_argument is called when production module_argument is entered. -func (s *BaseSQLiteParserListener) EnterModule_argument(ctx *Module_argumentContext) {} - -// ExitModule_argument is called when production module_argument is exited. -func (s *BaseSQLiteParserListener) ExitModule_argument(ctx *Module_argumentContext) {} - -// EnterColumn_alias is called when production column_alias is entered. -func (s *BaseSQLiteParserListener) EnterColumn_alias(ctx *Column_aliasContext) {} - -// ExitColumn_alias is called when production column_alias is exited. -func (s *BaseSQLiteParserListener) ExitColumn_alias(ctx *Column_aliasContext) {} - -// EnterKeyword is called when production keyword is entered. -func (s *BaseSQLiteParserListener) EnterKeyword(ctx *KeywordContext) {} - -// ExitKeyword is called when production keyword is exited. -func (s *BaseSQLiteParserListener) ExitKeyword(ctx *KeywordContext) {} - -// EnterName is called when production name is entered. -func (s *BaseSQLiteParserListener) EnterName(ctx *NameContext) {} - -// ExitName is called when production name is exited. -func (s *BaseSQLiteParserListener) ExitName(ctx *NameContext) {} - -// EnterFunction_name is called when production function_name is entered. -func (s *BaseSQLiteParserListener) EnterFunction_name(ctx *Function_nameContext) {} - -// ExitFunction_name is called when production function_name is exited. -func (s *BaseSQLiteParserListener) ExitFunction_name(ctx *Function_nameContext) {} - -// EnterSchema_name is called when production schema_name is entered. -func (s *BaseSQLiteParserListener) EnterSchema_name(ctx *Schema_nameContext) {} - -// ExitSchema_name is called when production schema_name is exited. -func (s *BaseSQLiteParserListener) ExitSchema_name(ctx *Schema_nameContext) {} - -// EnterTable_name is called when production table_name is entered. -func (s *BaseSQLiteParserListener) EnterTable_name(ctx *Table_nameContext) {} - -// ExitTable_name is called when production table_name is exited. -func (s *BaseSQLiteParserListener) ExitTable_name(ctx *Table_nameContext) {} - -// EnterTable_or_index_name is called when production table_or_index_name is entered. -func (s *BaseSQLiteParserListener) EnterTable_or_index_name(ctx *Table_or_index_nameContext) {} - -// ExitTable_or_index_name is called when production table_or_index_name is exited. -func (s *BaseSQLiteParserListener) ExitTable_or_index_name(ctx *Table_or_index_nameContext) {} - -// EnterColumn_name is called when production column_name is entered. -func (s *BaseSQLiteParserListener) EnterColumn_name(ctx *Column_nameContext) {} - -// ExitColumn_name is called when production column_name is exited. -func (s *BaseSQLiteParserListener) ExitColumn_name(ctx *Column_nameContext) {} - -// EnterCollation_name is called when production collation_name is entered. -func (s *BaseSQLiteParserListener) EnterCollation_name(ctx *Collation_nameContext) {} - -// ExitCollation_name is called when production collation_name is exited. -func (s *BaseSQLiteParserListener) ExitCollation_name(ctx *Collation_nameContext) {} - -// EnterForeign_table is called when production foreign_table is entered. -func (s *BaseSQLiteParserListener) EnterForeign_table(ctx *Foreign_tableContext) {} - -// ExitForeign_table is called when production foreign_table is exited. -func (s *BaseSQLiteParserListener) ExitForeign_table(ctx *Foreign_tableContext) {} - -// EnterIndex_name is called when production index_name is entered. -func (s *BaseSQLiteParserListener) EnterIndex_name(ctx *Index_nameContext) {} - -// ExitIndex_name is called when production index_name is exited. -func (s *BaseSQLiteParserListener) ExitIndex_name(ctx *Index_nameContext) {} - -// EnterTrigger_name is called when production trigger_name is entered. -func (s *BaseSQLiteParserListener) EnterTrigger_name(ctx *Trigger_nameContext) {} - -// ExitTrigger_name is called when production trigger_name is exited. -func (s *BaseSQLiteParserListener) ExitTrigger_name(ctx *Trigger_nameContext) {} - -// EnterView_name is called when production view_name is entered. -func (s *BaseSQLiteParserListener) EnterView_name(ctx *View_nameContext) {} - -// ExitView_name is called when production view_name is exited. -func (s *BaseSQLiteParserListener) ExitView_name(ctx *View_nameContext) {} - -// EnterModule_name is called when production module_name is entered. -func (s *BaseSQLiteParserListener) EnterModule_name(ctx *Module_nameContext) {} - -// ExitModule_name is called when production module_name is exited. -func (s *BaseSQLiteParserListener) ExitModule_name(ctx *Module_nameContext) {} - -// EnterPragma_name is called when production pragma_name is entered. -func (s *BaseSQLiteParserListener) EnterPragma_name(ctx *Pragma_nameContext) {} - -// ExitPragma_name is called when production pragma_name is exited. -func (s *BaseSQLiteParserListener) ExitPragma_name(ctx *Pragma_nameContext) {} - -// EnterSavepoint_name is called when production savepoint_name is entered. -func (s *BaseSQLiteParserListener) EnterSavepoint_name(ctx *Savepoint_nameContext) {} - -// ExitSavepoint_name is called when production savepoint_name is exited. -func (s *BaseSQLiteParserListener) ExitSavepoint_name(ctx *Savepoint_nameContext) {} - -// EnterTable_alias is called when production table_alias is entered. -func (s *BaseSQLiteParserListener) EnterTable_alias(ctx *Table_aliasContext) {} - -// ExitTable_alias is called when production table_alias is exited. -func (s *BaseSQLiteParserListener) ExitTable_alias(ctx *Table_aliasContext) {} - -// EnterTransaction_name is called when production transaction_name is entered. -func (s *BaseSQLiteParserListener) EnterTransaction_name(ctx *Transaction_nameContext) {} - -// ExitTransaction_name is called when production transaction_name is exited. -func (s *BaseSQLiteParserListener) ExitTransaction_name(ctx *Transaction_nameContext) {} - -// EnterWindow_name is called when production window_name is entered. -func (s *BaseSQLiteParserListener) EnterWindow_name(ctx *Window_nameContext) {} - -// ExitWindow_name is called when production window_name is exited. -func (s *BaseSQLiteParserListener) ExitWindow_name(ctx *Window_nameContext) {} - -// EnterAlias is called when production alias is entered. -func (s *BaseSQLiteParserListener) EnterAlias(ctx *AliasContext) {} - -// ExitAlias is called when production alias is exited. -func (s *BaseSQLiteParserListener) ExitAlias(ctx *AliasContext) {} - -// EnterFilename is called when production filename is entered. -func (s *BaseSQLiteParserListener) EnterFilename(ctx *FilenameContext) {} - -// ExitFilename is called when production filename is exited. -func (s *BaseSQLiteParserListener) ExitFilename(ctx *FilenameContext) {} - -// EnterBase_window_name is called when production base_window_name is entered. -func (s *BaseSQLiteParserListener) EnterBase_window_name(ctx *Base_window_nameContext) {} - -// ExitBase_window_name is called when production base_window_name is exited. -func (s *BaseSQLiteParserListener) ExitBase_window_name(ctx *Base_window_nameContext) {} - -// EnterSimple_func is called when production simple_func is entered. -func (s *BaseSQLiteParserListener) EnterSimple_func(ctx *Simple_funcContext) {} - -// ExitSimple_func is called when production simple_func is exited. -func (s *BaseSQLiteParserListener) ExitSimple_func(ctx *Simple_funcContext) {} - -// EnterAggregate_func is called when production aggregate_func is entered. -func (s *BaseSQLiteParserListener) EnterAggregate_func(ctx *Aggregate_funcContext) {} - -// ExitAggregate_func is called when production aggregate_func is exited. -func (s *BaseSQLiteParserListener) ExitAggregate_func(ctx *Aggregate_funcContext) {} - -// EnterTable_function_name is called when production table_function_name is entered. -func (s *BaseSQLiteParserListener) EnterTable_function_name(ctx *Table_function_nameContext) {} - -// ExitTable_function_name is called when production table_function_name is exited. -func (s *BaseSQLiteParserListener) ExitTable_function_name(ctx *Table_function_nameContext) {} - -// EnterAny_name is called when production any_name is entered. -func (s *BaseSQLiteParserListener) EnterAny_name(ctx *Any_nameContext) {} - -// ExitAny_name is called when production any_name is exited. -func (s *BaseSQLiteParserListener) ExitAny_name(ctx *Any_nameContext) {} diff --git a/go/internal/antlr4_sqlite_parser/sqliteparser_base_visitor.go b/go/internal/antlr4_sqlite_parser/sqliteparser_base_visitor.go new file mode 100644 index 0000000..0a28fe5 --- /dev/null +++ b/go/internal/antlr4_sqlite_parser/sqliteparser_base_visitor.go @@ -0,0 +1,460 @@ +// Code generated from SQLiteParser.g4 by ANTLR 4.13.2. DO NOT EDIT. + +package sqlite_parser // SQLiteParser +import "github.com/antlr4-go/antlr/v4" + +type BaseSQLiteParserVisitor struct { + *antlr.BaseParseTreeVisitor +} + +func (v *BaseSQLiteParserVisitor) VisitParse(ctx *ParseContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitSql_stmt_list(ctx *Sql_stmt_listContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitSql_stmt(ctx *Sql_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitAlter_table_stmt(ctx *Alter_table_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitAnalyze_stmt(ctx *Analyze_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitAttach_stmt(ctx *Attach_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitBegin_stmt(ctx *Begin_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCommit_stmt(ctx *Commit_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitRollback_stmt(ctx *Rollback_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitSavepoint_stmt(ctx *Savepoint_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitRelease_stmt(ctx *Release_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCreate_index_stmt(ctx *Create_index_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitIndexed_column(ctx *Indexed_columnContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCreate_table_stmt(ctx *Create_table_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitColumn_def(ctx *Column_defContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitType_name(ctx *Type_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitColumn_constraint(ctx *Column_constraintContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitSigned_number(ctx *Signed_numberContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitTable_constraint(ctx *Table_constraintContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitForeign_key_clause(ctx *Foreign_key_clauseContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitConflict_clause(ctx *Conflict_clauseContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCreate_trigger_stmt(ctx *Create_trigger_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCreate_view_stmt(ctx *Create_view_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCreate_virtual_table_stmt(ctx *Create_virtual_table_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitWith_clause(ctx *With_clauseContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCte_table_name(ctx *Cte_table_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitRecursive_cte(ctx *Recursive_cteContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCommon_table_expression(ctx *Common_table_expressionContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitDelete_stmt(ctx *Delete_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitDelete_stmt_limited(ctx *Delete_stmt_limitedContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitDetach_stmt(ctx *Detach_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitDrop_stmt(ctx *Drop_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitExpr(ctx *ExprContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitRaise_function(ctx *Raise_functionContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitLiteral_value(ctx *Literal_valueContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitValue_row(ctx *Value_rowContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitValues_clause(ctx *Values_clauseContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitInsert_stmt(ctx *Insert_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitReturning_clause(ctx *Returning_clauseContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitUpsert_clause(ctx *Upsert_clauseContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitPragma_stmt(ctx *Pragma_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitPragma_value(ctx *Pragma_valueContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitReindex_stmt(ctx *Reindex_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitSelect_stmt(ctx *Select_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitJoin_clause(ctx *Join_clauseContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitSelect_core(ctx *Select_coreContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitFactored_select_stmt(ctx *Factored_select_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitSimple_select_stmt(ctx *Simple_select_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCompound_select_stmt(ctx *Compound_select_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitTable_or_subquery(ctx *Table_or_subqueryContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitResult_column(ctx *Result_columnContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitJoin_operator(ctx *Join_operatorContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitJoin_constraint(ctx *Join_constraintContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCompound_operator(ctx *Compound_operatorContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitUpdate_stmt(ctx *Update_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitColumn_name_list(ctx *Column_name_listContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitUpdate_stmt_limited(ctx *Update_stmt_limitedContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitQualified_table_name(ctx *Qualified_table_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitVacuum_stmt(ctx *Vacuum_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitFilter_clause(ctx *Filter_clauseContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitWindow_defn(ctx *Window_defnContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitOver_clause(ctx *Over_clauseContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitFrame_spec(ctx *Frame_specContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitFrame_clause(ctx *Frame_clauseContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitSimple_function_invocation(ctx *Simple_function_invocationContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitAggregate_function_invocation(ctx *Aggregate_function_invocationContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitWindow_function_invocation(ctx *Window_function_invocationContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCommon_table_stmt(ctx *Common_table_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitOrder_by_stmt(ctx *Order_by_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitLimit_stmt(ctx *Limit_stmtContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitOrdering_term(ctx *Ordering_termContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitAsc_desc(ctx *Asc_descContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitFrame_left(ctx *Frame_leftContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitFrame_right(ctx *Frame_rightContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitFrame_single(ctx *Frame_singleContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitWindow_function(ctx *Window_functionContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitOffset(ctx *OffsetContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitDefault_value(ctx *Default_valueContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitPartition_by(ctx *Partition_byContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitOrder_by_expr(ctx *Order_by_exprContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitOrder_by_expr_asc_desc(ctx *Order_by_expr_asc_descContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitExpr_asc_desc(ctx *Expr_asc_descContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitInitial_select(ctx *Initial_selectContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitRecursive_select(ctx *Recursive_selectContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitUnary_operator(ctx *Unary_operatorContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitError_message(ctx *Error_messageContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitModule_argument(ctx *Module_argumentContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitColumn_alias(ctx *Column_aliasContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitKeyword(ctx *KeywordContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitName(ctx *NameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitFunction_name(ctx *Function_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitSchema_name(ctx *Schema_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitTable_name(ctx *Table_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitTable_or_index_name(ctx *Table_or_index_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitColumn_name(ctx *Column_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitCollation_name(ctx *Collation_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitForeign_table(ctx *Foreign_tableContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitIndex_name(ctx *Index_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitTrigger_name(ctx *Trigger_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitView_name(ctx *View_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitModule_name(ctx *Module_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitPragma_name(ctx *Pragma_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitSavepoint_name(ctx *Savepoint_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitTable_alias(ctx *Table_aliasContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitTransaction_name(ctx *Transaction_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitWindow_name(ctx *Window_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitAlias(ctx *AliasContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitFilename(ctx *FilenameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitBase_window_name(ctx *Base_window_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitSimple_func(ctx *Simple_funcContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitAggregate_func(ctx *Aggregate_funcContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitTable_function_name(ctx *Table_function_nameContext) interface{} { + return v.VisitChildren(ctx) +} + +func (v *BaseSQLiteParserVisitor) VisitAny_name(ctx *Any_nameContext) interface{} { + return v.VisitChildren(ctx) +} diff --git a/go/internal/antlr4_sqlite_parser/sqliteparser_listener.go b/go/internal/antlr4_sqlite_parser/sqliteparser_listener.go deleted file mode 100644 index a78b451..0000000 --- a/go/internal/antlr4_sqlite_parser/sqliteparser_listener.go +++ /dev/null @@ -1,688 +0,0 @@ -// Code generated from SQLiteParser.g4 by ANTLR 4.13.2. DO NOT EDIT. - -package parser // SQLiteParser - -import "github.com/antlr4-go/antlr/v4" - -// SQLiteParserListener is a complete listener for a parse tree produced by SQLiteParser. -type SQLiteParserListener interface { - antlr.ParseTreeListener - - // EnterParse is called when entering the parse production. - EnterParse(c *ParseContext) - - // EnterSql_stmt_list is called when entering the sql_stmt_list production. - EnterSql_stmt_list(c *Sql_stmt_listContext) - - // EnterSql_stmt is called when entering the sql_stmt production. - EnterSql_stmt(c *Sql_stmtContext) - - // EnterAlter_table_stmt is called when entering the alter_table_stmt production. - EnterAlter_table_stmt(c *Alter_table_stmtContext) - - // EnterAnalyze_stmt is called when entering the analyze_stmt production. - EnterAnalyze_stmt(c *Analyze_stmtContext) - - // EnterAttach_stmt is called when entering the attach_stmt production. - EnterAttach_stmt(c *Attach_stmtContext) - - // EnterBegin_stmt is called when entering the begin_stmt production. - EnterBegin_stmt(c *Begin_stmtContext) - - // EnterCommit_stmt is called when entering the commit_stmt production. - EnterCommit_stmt(c *Commit_stmtContext) - - // EnterRollback_stmt is called when entering the rollback_stmt production. - EnterRollback_stmt(c *Rollback_stmtContext) - - // EnterSavepoint_stmt is called when entering the savepoint_stmt production. - EnterSavepoint_stmt(c *Savepoint_stmtContext) - - // EnterRelease_stmt is called when entering the release_stmt production. - EnterRelease_stmt(c *Release_stmtContext) - - // EnterCreate_index_stmt is called when entering the create_index_stmt production. - EnterCreate_index_stmt(c *Create_index_stmtContext) - - // EnterIndexed_column is called when entering the indexed_column production. - EnterIndexed_column(c *Indexed_columnContext) - - // EnterCreate_table_stmt is called when entering the create_table_stmt production. - EnterCreate_table_stmt(c *Create_table_stmtContext) - - // EnterColumn_def is called when entering the column_def production. - EnterColumn_def(c *Column_defContext) - - // EnterType_name is called when entering the type_name production. - EnterType_name(c *Type_nameContext) - - // EnterColumn_constraint is called when entering the column_constraint production. - EnterColumn_constraint(c *Column_constraintContext) - - // EnterSigned_number is called when entering the signed_number production. - EnterSigned_number(c *Signed_numberContext) - - // EnterTable_constraint is called when entering the table_constraint production. - EnterTable_constraint(c *Table_constraintContext) - - // EnterForeign_key_clause is called when entering the foreign_key_clause production. - EnterForeign_key_clause(c *Foreign_key_clauseContext) - - // EnterConflict_clause is called when entering the conflict_clause production. - EnterConflict_clause(c *Conflict_clauseContext) - - // EnterCreate_trigger_stmt is called when entering the create_trigger_stmt production. - EnterCreate_trigger_stmt(c *Create_trigger_stmtContext) - - // EnterCreate_view_stmt is called when entering the create_view_stmt production. - EnterCreate_view_stmt(c *Create_view_stmtContext) - - // EnterCreate_virtual_table_stmt is called when entering the create_virtual_table_stmt production. - EnterCreate_virtual_table_stmt(c *Create_virtual_table_stmtContext) - - // EnterWith_clause is called when entering the with_clause production. - EnterWith_clause(c *With_clauseContext) - - // EnterCte_table_name is called when entering the cte_table_name production. - EnterCte_table_name(c *Cte_table_nameContext) - - // EnterRecursive_cte is called when entering the recursive_cte production. - EnterRecursive_cte(c *Recursive_cteContext) - - // EnterCommon_table_expression is called when entering the common_table_expression production. - EnterCommon_table_expression(c *Common_table_expressionContext) - - // EnterDelete_stmt is called when entering the delete_stmt production. - EnterDelete_stmt(c *Delete_stmtContext) - - // EnterDelete_stmt_limited is called when entering the delete_stmt_limited production. - EnterDelete_stmt_limited(c *Delete_stmt_limitedContext) - - // EnterDetach_stmt is called when entering the detach_stmt production. - EnterDetach_stmt(c *Detach_stmtContext) - - // EnterDrop_stmt is called when entering the drop_stmt production. - EnterDrop_stmt(c *Drop_stmtContext) - - // EnterExpr is called when entering the expr production. - EnterExpr(c *ExprContext) - - // EnterRaise_function is called when entering the raise_function production. - EnterRaise_function(c *Raise_functionContext) - - // EnterLiteral_value is called when entering the literal_value production. - EnterLiteral_value(c *Literal_valueContext) - - // EnterValue_row is called when entering the value_row production. - EnterValue_row(c *Value_rowContext) - - // EnterValues_clause is called when entering the values_clause production. - EnterValues_clause(c *Values_clauseContext) - - // EnterInsert_stmt is called when entering the insert_stmt production. - EnterInsert_stmt(c *Insert_stmtContext) - - // EnterReturning_clause is called when entering the returning_clause production. - EnterReturning_clause(c *Returning_clauseContext) - - // EnterUpsert_clause is called when entering the upsert_clause production. - EnterUpsert_clause(c *Upsert_clauseContext) - - // EnterPragma_stmt is called when entering the pragma_stmt production. - EnterPragma_stmt(c *Pragma_stmtContext) - - // EnterPragma_value is called when entering the pragma_value production. - EnterPragma_value(c *Pragma_valueContext) - - // EnterReindex_stmt is called when entering the reindex_stmt production. - EnterReindex_stmt(c *Reindex_stmtContext) - - // EnterSelect_stmt is called when entering the select_stmt production. - EnterSelect_stmt(c *Select_stmtContext) - - // EnterJoin_clause is called when entering the join_clause production. - EnterJoin_clause(c *Join_clauseContext) - - // EnterSelect_core is called when entering the select_core production. - EnterSelect_core(c *Select_coreContext) - - // EnterFactored_select_stmt is called when entering the factored_select_stmt production. - EnterFactored_select_stmt(c *Factored_select_stmtContext) - - // EnterSimple_select_stmt is called when entering the simple_select_stmt production. - EnterSimple_select_stmt(c *Simple_select_stmtContext) - - // EnterCompound_select_stmt is called when entering the compound_select_stmt production. - EnterCompound_select_stmt(c *Compound_select_stmtContext) - - // EnterTable_or_subquery is called when entering the table_or_subquery production. - EnterTable_or_subquery(c *Table_or_subqueryContext) - - // EnterResult_column is called when entering the result_column production. - EnterResult_column(c *Result_columnContext) - - // EnterJoin_operator is called when entering the join_operator production. - EnterJoin_operator(c *Join_operatorContext) - - // EnterJoin_constraint is called when entering the join_constraint production. - EnterJoin_constraint(c *Join_constraintContext) - - // EnterCompound_operator is called when entering the compound_operator production. - EnterCompound_operator(c *Compound_operatorContext) - - // EnterUpdate_stmt is called when entering the update_stmt production. - EnterUpdate_stmt(c *Update_stmtContext) - - // EnterColumn_name_list is called when entering the column_name_list production. - EnterColumn_name_list(c *Column_name_listContext) - - // EnterUpdate_stmt_limited is called when entering the update_stmt_limited production. - EnterUpdate_stmt_limited(c *Update_stmt_limitedContext) - - // EnterQualified_table_name is called when entering the qualified_table_name production. - EnterQualified_table_name(c *Qualified_table_nameContext) - - // EnterVacuum_stmt is called when entering the vacuum_stmt production. - EnterVacuum_stmt(c *Vacuum_stmtContext) - - // EnterFilter_clause is called when entering the filter_clause production. - EnterFilter_clause(c *Filter_clauseContext) - - // EnterWindow_defn is called when entering the window_defn production. - EnterWindow_defn(c *Window_defnContext) - - // EnterOver_clause is called when entering the over_clause production. - EnterOver_clause(c *Over_clauseContext) - - // EnterFrame_spec is called when entering the frame_spec production. - EnterFrame_spec(c *Frame_specContext) - - // EnterFrame_clause is called when entering the frame_clause production. - EnterFrame_clause(c *Frame_clauseContext) - - // EnterSimple_function_invocation is called when entering the simple_function_invocation production. - EnterSimple_function_invocation(c *Simple_function_invocationContext) - - // EnterAggregate_function_invocation is called when entering the aggregate_function_invocation production. - EnterAggregate_function_invocation(c *Aggregate_function_invocationContext) - - // EnterWindow_function_invocation is called when entering the window_function_invocation production. - EnterWindow_function_invocation(c *Window_function_invocationContext) - - // EnterCommon_table_stmt is called when entering the common_table_stmt production. - EnterCommon_table_stmt(c *Common_table_stmtContext) - - // EnterOrder_by_stmt is called when entering the order_by_stmt production. - EnterOrder_by_stmt(c *Order_by_stmtContext) - - // EnterLimit_stmt is called when entering the limit_stmt production. - EnterLimit_stmt(c *Limit_stmtContext) - - // EnterOrdering_term is called when entering the ordering_term production. - EnterOrdering_term(c *Ordering_termContext) - - // EnterAsc_desc is called when entering the asc_desc production. - EnterAsc_desc(c *Asc_descContext) - - // EnterFrame_left is called when entering the frame_left production. - EnterFrame_left(c *Frame_leftContext) - - // EnterFrame_right is called when entering the frame_right production. - EnterFrame_right(c *Frame_rightContext) - - // EnterFrame_single is called when entering the frame_single production. - EnterFrame_single(c *Frame_singleContext) - - // EnterWindow_function is called when entering the window_function production. - EnterWindow_function(c *Window_functionContext) - - // EnterOffset is called when entering the offset production. - EnterOffset(c *OffsetContext) - - // EnterDefault_value is called when entering the default_value production. - EnterDefault_value(c *Default_valueContext) - - // EnterPartition_by is called when entering the partition_by production. - EnterPartition_by(c *Partition_byContext) - - // EnterOrder_by_expr is called when entering the order_by_expr production. - EnterOrder_by_expr(c *Order_by_exprContext) - - // EnterOrder_by_expr_asc_desc is called when entering the order_by_expr_asc_desc production. - EnterOrder_by_expr_asc_desc(c *Order_by_expr_asc_descContext) - - // EnterExpr_asc_desc is called when entering the expr_asc_desc production. - EnterExpr_asc_desc(c *Expr_asc_descContext) - - // EnterInitial_select is called when entering the initial_select production. - EnterInitial_select(c *Initial_selectContext) - - // EnterRecursive_select is called when entering the recursive_select production. - EnterRecursive_select(c *Recursive_selectContext) - - // EnterUnary_operator is called when entering the unary_operator production. - EnterUnary_operator(c *Unary_operatorContext) - - // EnterError_message is called when entering the error_message production. - EnterError_message(c *Error_messageContext) - - // EnterModule_argument is called when entering the module_argument production. - EnterModule_argument(c *Module_argumentContext) - - // EnterColumn_alias is called when entering the column_alias production. - EnterColumn_alias(c *Column_aliasContext) - - // EnterKeyword is called when entering the keyword production. - EnterKeyword(c *KeywordContext) - - // EnterName is called when entering the name production. - EnterName(c *NameContext) - - // EnterFunction_name is called when entering the function_name production. - EnterFunction_name(c *Function_nameContext) - - // EnterSchema_name is called when entering the schema_name production. - EnterSchema_name(c *Schema_nameContext) - - // EnterTable_name is called when entering the table_name production. - EnterTable_name(c *Table_nameContext) - - // EnterTable_or_index_name is called when entering the table_or_index_name production. - EnterTable_or_index_name(c *Table_or_index_nameContext) - - // EnterColumn_name is called when entering the column_name production. - EnterColumn_name(c *Column_nameContext) - - // EnterCollation_name is called when entering the collation_name production. - EnterCollation_name(c *Collation_nameContext) - - // EnterForeign_table is called when entering the foreign_table production. - EnterForeign_table(c *Foreign_tableContext) - - // EnterIndex_name is called when entering the index_name production. - EnterIndex_name(c *Index_nameContext) - - // EnterTrigger_name is called when entering the trigger_name production. - EnterTrigger_name(c *Trigger_nameContext) - - // EnterView_name is called when entering the view_name production. - EnterView_name(c *View_nameContext) - - // EnterModule_name is called when entering the module_name production. - EnterModule_name(c *Module_nameContext) - - // EnterPragma_name is called when entering the pragma_name production. - EnterPragma_name(c *Pragma_nameContext) - - // EnterSavepoint_name is called when entering the savepoint_name production. - EnterSavepoint_name(c *Savepoint_nameContext) - - // EnterTable_alias is called when entering the table_alias production. - EnterTable_alias(c *Table_aliasContext) - - // EnterTransaction_name is called when entering the transaction_name production. - EnterTransaction_name(c *Transaction_nameContext) - - // EnterWindow_name is called when entering the window_name production. - EnterWindow_name(c *Window_nameContext) - - // EnterAlias is called when entering the alias production. - EnterAlias(c *AliasContext) - - // EnterFilename is called when entering the filename production. - EnterFilename(c *FilenameContext) - - // EnterBase_window_name is called when entering the base_window_name production. - EnterBase_window_name(c *Base_window_nameContext) - - // EnterSimple_func is called when entering the simple_func production. - EnterSimple_func(c *Simple_funcContext) - - // EnterAggregate_func is called when entering the aggregate_func production. - EnterAggregate_func(c *Aggregate_funcContext) - - // EnterTable_function_name is called when entering the table_function_name production. - EnterTable_function_name(c *Table_function_nameContext) - - // EnterAny_name is called when entering the any_name production. - EnterAny_name(c *Any_nameContext) - - // ExitParse is called when exiting the parse production. - ExitParse(c *ParseContext) - - // ExitSql_stmt_list is called when exiting the sql_stmt_list production. - ExitSql_stmt_list(c *Sql_stmt_listContext) - - // ExitSql_stmt is called when exiting the sql_stmt production. - ExitSql_stmt(c *Sql_stmtContext) - - // ExitAlter_table_stmt is called when exiting the alter_table_stmt production. - ExitAlter_table_stmt(c *Alter_table_stmtContext) - - // ExitAnalyze_stmt is called when exiting the analyze_stmt production. - ExitAnalyze_stmt(c *Analyze_stmtContext) - - // ExitAttach_stmt is called when exiting the attach_stmt production. - ExitAttach_stmt(c *Attach_stmtContext) - - // ExitBegin_stmt is called when exiting the begin_stmt production. - ExitBegin_stmt(c *Begin_stmtContext) - - // ExitCommit_stmt is called when exiting the commit_stmt production. - ExitCommit_stmt(c *Commit_stmtContext) - - // ExitRollback_stmt is called when exiting the rollback_stmt production. - ExitRollback_stmt(c *Rollback_stmtContext) - - // ExitSavepoint_stmt is called when exiting the savepoint_stmt production. - ExitSavepoint_stmt(c *Savepoint_stmtContext) - - // ExitRelease_stmt is called when exiting the release_stmt production. - ExitRelease_stmt(c *Release_stmtContext) - - // ExitCreate_index_stmt is called when exiting the create_index_stmt production. - ExitCreate_index_stmt(c *Create_index_stmtContext) - - // ExitIndexed_column is called when exiting the indexed_column production. - ExitIndexed_column(c *Indexed_columnContext) - - // ExitCreate_table_stmt is called when exiting the create_table_stmt production. - ExitCreate_table_stmt(c *Create_table_stmtContext) - - // ExitColumn_def is called when exiting the column_def production. - ExitColumn_def(c *Column_defContext) - - // ExitType_name is called when exiting the type_name production. - ExitType_name(c *Type_nameContext) - - // ExitColumn_constraint is called when exiting the column_constraint production. - ExitColumn_constraint(c *Column_constraintContext) - - // ExitSigned_number is called when exiting the signed_number production. - ExitSigned_number(c *Signed_numberContext) - - // ExitTable_constraint is called when exiting the table_constraint production. - ExitTable_constraint(c *Table_constraintContext) - - // ExitForeign_key_clause is called when exiting the foreign_key_clause production. - ExitForeign_key_clause(c *Foreign_key_clauseContext) - - // ExitConflict_clause is called when exiting the conflict_clause production. - ExitConflict_clause(c *Conflict_clauseContext) - - // ExitCreate_trigger_stmt is called when exiting the create_trigger_stmt production. - ExitCreate_trigger_stmt(c *Create_trigger_stmtContext) - - // ExitCreate_view_stmt is called when exiting the create_view_stmt production. - ExitCreate_view_stmt(c *Create_view_stmtContext) - - // ExitCreate_virtual_table_stmt is called when exiting the create_virtual_table_stmt production. - ExitCreate_virtual_table_stmt(c *Create_virtual_table_stmtContext) - - // ExitWith_clause is called when exiting the with_clause production. - ExitWith_clause(c *With_clauseContext) - - // ExitCte_table_name is called when exiting the cte_table_name production. - ExitCte_table_name(c *Cte_table_nameContext) - - // ExitRecursive_cte is called when exiting the recursive_cte production. - ExitRecursive_cte(c *Recursive_cteContext) - - // ExitCommon_table_expression is called when exiting the common_table_expression production. - ExitCommon_table_expression(c *Common_table_expressionContext) - - // ExitDelete_stmt is called when exiting the delete_stmt production. - ExitDelete_stmt(c *Delete_stmtContext) - - // ExitDelete_stmt_limited is called when exiting the delete_stmt_limited production. - ExitDelete_stmt_limited(c *Delete_stmt_limitedContext) - - // ExitDetach_stmt is called when exiting the detach_stmt production. - ExitDetach_stmt(c *Detach_stmtContext) - - // ExitDrop_stmt is called when exiting the drop_stmt production. - ExitDrop_stmt(c *Drop_stmtContext) - - // ExitExpr is called when exiting the expr production. - ExitExpr(c *ExprContext) - - // ExitRaise_function is called when exiting the raise_function production. - ExitRaise_function(c *Raise_functionContext) - - // ExitLiteral_value is called when exiting the literal_value production. - ExitLiteral_value(c *Literal_valueContext) - - // ExitValue_row is called when exiting the value_row production. - ExitValue_row(c *Value_rowContext) - - // ExitValues_clause is called when exiting the values_clause production. - ExitValues_clause(c *Values_clauseContext) - - // ExitInsert_stmt is called when exiting the insert_stmt production. - ExitInsert_stmt(c *Insert_stmtContext) - - // ExitReturning_clause is called when exiting the returning_clause production. - ExitReturning_clause(c *Returning_clauseContext) - - // ExitUpsert_clause is called when exiting the upsert_clause production. - ExitUpsert_clause(c *Upsert_clauseContext) - - // ExitPragma_stmt is called when exiting the pragma_stmt production. - ExitPragma_stmt(c *Pragma_stmtContext) - - // ExitPragma_value is called when exiting the pragma_value production. - ExitPragma_value(c *Pragma_valueContext) - - // ExitReindex_stmt is called when exiting the reindex_stmt production. - ExitReindex_stmt(c *Reindex_stmtContext) - - // ExitSelect_stmt is called when exiting the select_stmt production. - ExitSelect_stmt(c *Select_stmtContext) - - // ExitJoin_clause is called when exiting the join_clause production. - ExitJoin_clause(c *Join_clauseContext) - - // ExitSelect_core is called when exiting the select_core production. - ExitSelect_core(c *Select_coreContext) - - // ExitFactored_select_stmt is called when exiting the factored_select_stmt production. - ExitFactored_select_stmt(c *Factored_select_stmtContext) - - // ExitSimple_select_stmt is called when exiting the simple_select_stmt production. - ExitSimple_select_stmt(c *Simple_select_stmtContext) - - // ExitCompound_select_stmt is called when exiting the compound_select_stmt production. - ExitCompound_select_stmt(c *Compound_select_stmtContext) - - // ExitTable_or_subquery is called when exiting the table_or_subquery production. - ExitTable_or_subquery(c *Table_or_subqueryContext) - - // ExitResult_column is called when exiting the result_column production. - ExitResult_column(c *Result_columnContext) - - // ExitJoin_operator is called when exiting the join_operator production. - ExitJoin_operator(c *Join_operatorContext) - - // ExitJoin_constraint is called when exiting the join_constraint production. - ExitJoin_constraint(c *Join_constraintContext) - - // ExitCompound_operator is called when exiting the compound_operator production. - ExitCompound_operator(c *Compound_operatorContext) - - // ExitUpdate_stmt is called when exiting the update_stmt production. - ExitUpdate_stmt(c *Update_stmtContext) - - // ExitColumn_name_list is called when exiting the column_name_list production. - ExitColumn_name_list(c *Column_name_listContext) - - // ExitUpdate_stmt_limited is called when exiting the update_stmt_limited production. - ExitUpdate_stmt_limited(c *Update_stmt_limitedContext) - - // ExitQualified_table_name is called when exiting the qualified_table_name production. - ExitQualified_table_name(c *Qualified_table_nameContext) - - // ExitVacuum_stmt is called when exiting the vacuum_stmt production. - ExitVacuum_stmt(c *Vacuum_stmtContext) - - // ExitFilter_clause is called when exiting the filter_clause production. - ExitFilter_clause(c *Filter_clauseContext) - - // ExitWindow_defn is called when exiting the window_defn production. - ExitWindow_defn(c *Window_defnContext) - - // ExitOver_clause is called when exiting the over_clause production. - ExitOver_clause(c *Over_clauseContext) - - // ExitFrame_spec is called when exiting the frame_spec production. - ExitFrame_spec(c *Frame_specContext) - - // ExitFrame_clause is called when exiting the frame_clause production. - ExitFrame_clause(c *Frame_clauseContext) - - // ExitSimple_function_invocation is called when exiting the simple_function_invocation production. - ExitSimple_function_invocation(c *Simple_function_invocationContext) - - // ExitAggregate_function_invocation is called when exiting the aggregate_function_invocation production. - ExitAggregate_function_invocation(c *Aggregate_function_invocationContext) - - // ExitWindow_function_invocation is called when exiting the window_function_invocation production. - ExitWindow_function_invocation(c *Window_function_invocationContext) - - // ExitCommon_table_stmt is called when exiting the common_table_stmt production. - ExitCommon_table_stmt(c *Common_table_stmtContext) - - // ExitOrder_by_stmt is called when exiting the order_by_stmt production. - ExitOrder_by_stmt(c *Order_by_stmtContext) - - // ExitLimit_stmt is called when exiting the limit_stmt production. - ExitLimit_stmt(c *Limit_stmtContext) - - // ExitOrdering_term is called when exiting the ordering_term production. - ExitOrdering_term(c *Ordering_termContext) - - // ExitAsc_desc is called when exiting the asc_desc production. - ExitAsc_desc(c *Asc_descContext) - - // ExitFrame_left is called when exiting the frame_left production. - ExitFrame_left(c *Frame_leftContext) - - // ExitFrame_right is called when exiting the frame_right production. - ExitFrame_right(c *Frame_rightContext) - - // ExitFrame_single is called when exiting the frame_single production. - ExitFrame_single(c *Frame_singleContext) - - // ExitWindow_function is called when exiting the window_function production. - ExitWindow_function(c *Window_functionContext) - - // ExitOffset is called when exiting the offset production. - ExitOffset(c *OffsetContext) - - // ExitDefault_value is called when exiting the default_value production. - ExitDefault_value(c *Default_valueContext) - - // ExitPartition_by is called when exiting the partition_by production. - ExitPartition_by(c *Partition_byContext) - - // ExitOrder_by_expr is called when exiting the order_by_expr production. - ExitOrder_by_expr(c *Order_by_exprContext) - - // ExitOrder_by_expr_asc_desc is called when exiting the order_by_expr_asc_desc production. - ExitOrder_by_expr_asc_desc(c *Order_by_expr_asc_descContext) - - // ExitExpr_asc_desc is called when exiting the expr_asc_desc production. - ExitExpr_asc_desc(c *Expr_asc_descContext) - - // ExitInitial_select is called when exiting the initial_select production. - ExitInitial_select(c *Initial_selectContext) - - // ExitRecursive_select is called when exiting the recursive_select production. - ExitRecursive_select(c *Recursive_selectContext) - - // ExitUnary_operator is called when exiting the unary_operator production. - ExitUnary_operator(c *Unary_operatorContext) - - // ExitError_message is called when exiting the error_message production. - ExitError_message(c *Error_messageContext) - - // ExitModule_argument is called when exiting the module_argument production. - ExitModule_argument(c *Module_argumentContext) - - // ExitColumn_alias is called when exiting the column_alias production. - ExitColumn_alias(c *Column_aliasContext) - - // ExitKeyword is called when exiting the keyword production. - ExitKeyword(c *KeywordContext) - - // ExitName is called when exiting the name production. - ExitName(c *NameContext) - - // ExitFunction_name is called when exiting the function_name production. - ExitFunction_name(c *Function_nameContext) - - // ExitSchema_name is called when exiting the schema_name production. - ExitSchema_name(c *Schema_nameContext) - - // ExitTable_name is called when exiting the table_name production. - ExitTable_name(c *Table_nameContext) - - // ExitTable_or_index_name is called when exiting the table_or_index_name production. - ExitTable_or_index_name(c *Table_or_index_nameContext) - - // ExitColumn_name is called when exiting the column_name production. - ExitColumn_name(c *Column_nameContext) - - // ExitCollation_name is called when exiting the collation_name production. - ExitCollation_name(c *Collation_nameContext) - - // ExitForeign_table is called when exiting the foreign_table production. - ExitForeign_table(c *Foreign_tableContext) - - // ExitIndex_name is called when exiting the index_name production. - ExitIndex_name(c *Index_nameContext) - - // ExitTrigger_name is called when exiting the trigger_name production. - ExitTrigger_name(c *Trigger_nameContext) - - // ExitView_name is called when exiting the view_name production. - ExitView_name(c *View_nameContext) - - // ExitModule_name is called when exiting the module_name production. - ExitModule_name(c *Module_nameContext) - - // ExitPragma_name is called when exiting the pragma_name production. - ExitPragma_name(c *Pragma_nameContext) - - // ExitSavepoint_name is called when exiting the savepoint_name production. - ExitSavepoint_name(c *Savepoint_nameContext) - - // ExitTable_alias is called when exiting the table_alias production. - ExitTable_alias(c *Table_aliasContext) - - // ExitTransaction_name is called when exiting the transaction_name production. - ExitTransaction_name(c *Transaction_nameContext) - - // ExitWindow_name is called when exiting the window_name production. - ExitWindow_name(c *Window_nameContext) - - // ExitAlias is called when exiting the alias production. - ExitAlias(c *AliasContext) - - // ExitFilename is called when exiting the filename production. - ExitFilename(c *FilenameContext) - - // ExitBase_window_name is called when exiting the base_window_name production. - ExitBase_window_name(c *Base_window_nameContext) - - // ExitSimple_func is called when exiting the simple_func production. - ExitSimple_func(c *Simple_funcContext) - - // ExitAggregate_func is called when exiting the aggregate_func production. - ExitAggregate_func(c *Aggregate_funcContext) - - // ExitTable_function_name is called when exiting the table_function_name production. - ExitTable_function_name(c *Table_function_nameContext) - - // ExitAny_name is called when exiting the any_name production. - ExitAny_name(c *Any_nameContext) -} diff --git a/go/internal/antlr4_sqlite_parser/sqliteparser_visitor.go b/go/internal/antlr4_sqlite_parser/sqliteparser_visitor.go new file mode 100644 index 0000000..b725da4 --- /dev/null +++ b/go/internal/antlr4_sqlite_parser/sqliteparser_visitor.go @@ -0,0 +1,348 @@ +// Code generated from SQLiteParser.g4 by ANTLR 4.13.2. DO NOT EDIT. + +package sqlite_parser // SQLiteParser +import "github.com/antlr4-go/antlr/v4" + +// A complete Visitor for a parse tree produced by SQLiteParser. +type SQLiteParserVisitor interface { + antlr.ParseTreeVisitor + + // Visit a parse tree produced by SQLiteParser#parse. + VisitParse(ctx *ParseContext) interface{} + + // Visit a parse tree produced by SQLiteParser#sql_stmt_list. + VisitSql_stmt_list(ctx *Sql_stmt_listContext) interface{} + + // Visit a parse tree produced by SQLiteParser#sql_stmt. + VisitSql_stmt(ctx *Sql_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#alter_table_stmt. + VisitAlter_table_stmt(ctx *Alter_table_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#analyze_stmt. + VisitAnalyze_stmt(ctx *Analyze_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#attach_stmt. + VisitAttach_stmt(ctx *Attach_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#begin_stmt. + VisitBegin_stmt(ctx *Begin_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#commit_stmt. + VisitCommit_stmt(ctx *Commit_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#rollback_stmt. + VisitRollback_stmt(ctx *Rollback_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#savepoint_stmt. + VisitSavepoint_stmt(ctx *Savepoint_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#release_stmt. + VisitRelease_stmt(ctx *Release_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#create_index_stmt. + VisitCreate_index_stmt(ctx *Create_index_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#indexed_column. + VisitIndexed_column(ctx *Indexed_columnContext) interface{} + + // Visit a parse tree produced by SQLiteParser#create_table_stmt. + VisitCreate_table_stmt(ctx *Create_table_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#column_def. + VisitColumn_def(ctx *Column_defContext) interface{} + + // Visit a parse tree produced by SQLiteParser#type_name. + VisitType_name(ctx *Type_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#column_constraint. + VisitColumn_constraint(ctx *Column_constraintContext) interface{} + + // Visit a parse tree produced by SQLiteParser#signed_number. + VisitSigned_number(ctx *Signed_numberContext) interface{} + + // Visit a parse tree produced by SQLiteParser#table_constraint. + VisitTable_constraint(ctx *Table_constraintContext) interface{} + + // Visit a parse tree produced by SQLiteParser#foreign_key_clause. + VisitForeign_key_clause(ctx *Foreign_key_clauseContext) interface{} + + // Visit a parse tree produced by SQLiteParser#conflict_clause. + VisitConflict_clause(ctx *Conflict_clauseContext) interface{} + + // Visit a parse tree produced by SQLiteParser#create_trigger_stmt. + VisitCreate_trigger_stmt(ctx *Create_trigger_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#create_view_stmt. + VisitCreate_view_stmt(ctx *Create_view_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#create_virtual_table_stmt. + VisitCreate_virtual_table_stmt(ctx *Create_virtual_table_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#with_clause. + VisitWith_clause(ctx *With_clauseContext) interface{} + + // Visit a parse tree produced by SQLiteParser#cte_table_name. + VisitCte_table_name(ctx *Cte_table_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#recursive_cte. + VisitRecursive_cte(ctx *Recursive_cteContext) interface{} + + // Visit a parse tree produced by SQLiteParser#common_table_expression. + VisitCommon_table_expression(ctx *Common_table_expressionContext) interface{} + + // Visit a parse tree produced by SQLiteParser#delete_stmt. + VisitDelete_stmt(ctx *Delete_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#delete_stmt_limited. + VisitDelete_stmt_limited(ctx *Delete_stmt_limitedContext) interface{} + + // Visit a parse tree produced by SQLiteParser#detach_stmt. + VisitDetach_stmt(ctx *Detach_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#drop_stmt. + VisitDrop_stmt(ctx *Drop_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#expr. + VisitExpr(ctx *ExprContext) interface{} + + // Visit a parse tree produced by SQLiteParser#raise_function. + VisitRaise_function(ctx *Raise_functionContext) interface{} + + // Visit a parse tree produced by SQLiteParser#literal_value. + VisitLiteral_value(ctx *Literal_valueContext) interface{} + + // Visit a parse tree produced by SQLiteParser#value_row. + VisitValue_row(ctx *Value_rowContext) interface{} + + // Visit a parse tree produced by SQLiteParser#values_clause. + VisitValues_clause(ctx *Values_clauseContext) interface{} + + // Visit a parse tree produced by SQLiteParser#insert_stmt. + VisitInsert_stmt(ctx *Insert_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#returning_clause. + VisitReturning_clause(ctx *Returning_clauseContext) interface{} + + // Visit a parse tree produced by SQLiteParser#upsert_clause. + VisitUpsert_clause(ctx *Upsert_clauseContext) interface{} + + // Visit a parse tree produced by SQLiteParser#pragma_stmt. + VisitPragma_stmt(ctx *Pragma_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#pragma_value. + VisitPragma_value(ctx *Pragma_valueContext) interface{} + + // Visit a parse tree produced by SQLiteParser#reindex_stmt. + VisitReindex_stmt(ctx *Reindex_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#select_stmt. + VisitSelect_stmt(ctx *Select_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#join_clause. + VisitJoin_clause(ctx *Join_clauseContext) interface{} + + // Visit a parse tree produced by SQLiteParser#select_core. + VisitSelect_core(ctx *Select_coreContext) interface{} + + // Visit a parse tree produced by SQLiteParser#factored_select_stmt. + VisitFactored_select_stmt(ctx *Factored_select_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#simple_select_stmt. + VisitSimple_select_stmt(ctx *Simple_select_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#compound_select_stmt. + VisitCompound_select_stmt(ctx *Compound_select_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#table_or_subquery. + VisitTable_or_subquery(ctx *Table_or_subqueryContext) interface{} + + // Visit a parse tree produced by SQLiteParser#result_column. + VisitResult_column(ctx *Result_columnContext) interface{} + + // Visit a parse tree produced by SQLiteParser#join_operator. + VisitJoin_operator(ctx *Join_operatorContext) interface{} + + // Visit a parse tree produced by SQLiteParser#join_constraint. + VisitJoin_constraint(ctx *Join_constraintContext) interface{} + + // Visit a parse tree produced by SQLiteParser#compound_operator. + VisitCompound_operator(ctx *Compound_operatorContext) interface{} + + // Visit a parse tree produced by SQLiteParser#update_stmt. + VisitUpdate_stmt(ctx *Update_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#column_name_list. + VisitColumn_name_list(ctx *Column_name_listContext) interface{} + + // Visit a parse tree produced by SQLiteParser#update_stmt_limited. + VisitUpdate_stmt_limited(ctx *Update_stmt_limitedContext) interface{} + + // Visit a parse tree produced by SQLiteParser#qualified_table_name. + VisitQualified_table_name(ctx *Qualified_table_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#vacuum_stmt. + VisitVacuum_stmt(ctx *Vacuum_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#filter_clause. + VisitFilter_clause(ctx *Filter_clauseContext) interface{} + + // Visit a parse tree produced by SQLiteParser#window_defn. + VisitWindow_defn(ctx *Window_defnContext) interface{} + + // Visit a parse tree produced by SQLiteParser#over_clause. + VisitOver_clause(ctx *Over_clauseContext) interface{} + + // Visit a parse tree produced by SQLiteParser#frame_spec. + VisitFrame_spec(ctx *Frame_specContext) interface{} + + // Visit a parse tree produced by SQLiteParser#frame_clause. + VisitFrame_clause(ctx *Frame_clauseContext) interface{} + + // Visit a parse tree produced by SQLiteParser#simple_function_invocation. + VisitSimple_function_invocation(ctx *Simple_function_invocationContext) interface{} + + // Visit a parse tree produced by SQLiteParser#aggregate_function_invocation. + VisitAggregate_function_invocation(ctx *Aggregate_function_invocationContext) interface{} + + // Visit a parse tree produced by SQLiteParser#window_function_invocation. + VisitWindow_function_invocation(ctx *Window_function_invocationContext) interface{} + + // Visit a parse tree produced by SQLiteParser#common_table_stmt. + VisitCommon_table_stmt(ctx *Common_table_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#order_by_stmt. + VisitOrder_by_stmt(ctx *Order_by_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#limit_stmt. + VisitLimit_stmt(ctx *Limit_stmtContext) interface{} + + // Visit a parse tree produced by SQLiteParser#ordering_term. + VisitOrdering_term(ctx *Ordering_termContext) interface{} + + // Visit a parse tree produced by SQLiteParser#asc_desc. + VisitAsc_desc(ctx *Asc_descContext) interface{} + + // Visit a parse tree produced by SQLiteParser#frame_left. + VisitFrame_left(ctx *Frame_leftContext) interface{} + + // Visit a parse tree produced by SQLiteParser#frame_right. + VisitFrame_right(ctx *Frame_rightContext) interface{} + + // Visit a parse tree produced by SQLiteParser#frame_single. + VisitFrame_single(ctx *Frame_singleContext) interface{} + + // Visit a parse tree produced by SQLiteParser#window_function. + VisitWindow_function(ctx *Window_functionContext) interface{} + + // Visit a parse tree produced by SQLiteParser#offset. + VisitOffset(ctx *OffsetContext) interface{} + + // Visit a parse tree produced by SQLiteParser#default_value. + VisitDefault_value(ctx *Default_valueContext) interface{} + + // Visit a parse tree produced by SQLiteParser#partition_by. + VisitPartition_by(ctx *Partition_byContext) interface{} + + // Visit a parse tree produced by SQLiteParser#order_by_expr. + VisitOrder_by_expr(ctx *Order_by_exprContext) interface{} + + // Visit a parse tree produced by SQLiteParser#order_by_expr_asc_desc. + VisitOrder_by_expr_asc_desc(ctx *Order_by_expr_asc_descContext) interface{} + + // Visit a parse tree produced by SQLiteParser#expr_asc_desc. + VisitExpr_asc_desc(ctx *Expr_asc_descContext) interface{} + + // Visit a parse tree produced by SQLiteParser#initial_select. + VisitInitial_select(ctx *Initial_selectContext) interface{} + + // Visit a parse tree produced by SQLiteParser#recursive_select. + VisitRecursive_select(ctx *Recursive_selectContext) interface{} + + // Visit a parse tree produced by SQLiteParser#unary_operator. + VisitUnary_operator(ctx *Unary_operatorContext) interface{} + + // Visit a parse tree produced by SQLiteParser#error_message. + VisitError_message(ctx *Error_messageContext) interface{} + + // Visit a parse tree produced by SQLiteParser#module_argument. + VisitModule_argument(ctx *Module_argumentContext) interface{} + + // Visit a parse tree produced by SQLiteParser#column_alias. + VisitColumn_alias(ctx *Column_aliasContext) interface{} + + // Visit a parse tree produced by SQLiteParser#keyword. + VisitKeyword(ctx *KeywordContext) interface{} + + // Visit a parse tree produced by SQLiteParser#name. + VisitName(ctx *NameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#function_name. + VisitFunction_name(ctx *Function_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#schema_name. + VisitSchema_name(ctx *Schema_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#table_name. + VisitTable_name(ctx *Table_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#table_or_index_name. + VisitTable_or_index_name(ctx *Table_or_index_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#column_name. + VisitColumn_name(ctx *Column_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#collation_name. + VisitCollation_name(ctx *Collation_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#foreign_table. + VisitForeign_table(ctx *Foreign_tableContext) interface{} + + // Visit a parse tree produced by SQLiteParser#index_name. + VisitIndex_name(ctx *Index_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#trigger_name. + VisitTrigger_name(ctx *Trigger_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#view_name. + VisitView_name(ctx *View_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#module_name. + VisitModule_name(ctx *Module_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#pragma_name. + VisitPragma_name(ctx *Pragma_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#savepoint_name. + VisitSavepoint_name(ctx *Savepoint_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#table_alias. + VisitTable_alias(ctx *Table_aliasContext) interface{} + + // Visit a parse tree produced by SQLiteParser#transaction_name. + VisitTransaction_name(ctx *Transaction_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#window_name. + VisitWindow_name(ctx *Window_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#alias. + VisitAlias(ctx *AliasContext) interface{} + + // Visit a parse tree produced by SQLiteParser#filename. + VisitFilename(ctx *FilenameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#base_window_name. + VisitBase_window_name(ctx *Base_window_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#simple_func. + VisitSimple_func(ctx *Simple_funcContext) interface{} + + // Visit a parse tree produced by SQLiteParser#aggregate_func. + VisitAggregate_func(ctx *Aggregate_funcContext) interface{} + + // Visit a parse tree produced by SQLiteParser#table_function_name. + VisitTable_function_name(ctx *Table_function_nameContext) interface{} + + // Visit a parse tree produced by SQLiteParser#any_name. + VisitAny_name(ctx *Any_nameContext) interface{} +} diff --git a/go/internal/declarative_migrations/migration.go b/go/internal/declarative_migrations/migration.go index a9c0628..ee8b5a9 100644 --- a/go/internal/declarative_migrations/migration.go +++ b/go/internal/declarative_migrations/migration.go @@ -1 +1,5 @@ package declarative_migrations + +func migration(dbSchema, expectedSchema SqlFile) ([]string, error) { + return []string{}, nil +} diff --git a/go/internal/declarative_migrations/sql_parser.go b/go/internal/declarative_migrations/sql_parser.go index a9c0628..fd14b7a 100644 --- a/go/internal/declarative_migrations/sql_parser.go +++ b/go/internal/declarative_migrations/sql_parser.go @@ -1 +1,53 @@ package declarative_migrations + +import ( + "github.com/antlr4-go/antlr/v4" + sqlite_parser "github.com/lamg/migrate/internal/antlr4_sqlite_parser" +) + +type SqlVisitor struct { + *sqlite_parser.BaseSQLiteParserVisitor +} + +func (v *SqlVisitor) VisitSql_stmt_list() { + +} + +func (v *SqlVisitor) VisitCreate_table_stmt() { + +} + +func (v *SqlVisitor) VisitCreate_view_stmt() { + +} + +func (v *SqlVisitor) VisitCreate_index_stmt() { + +} + +func (v *SqlVisitor) VisitCreate_trigger_stmt() { + +} + +func parse(sql string) SqlFile { + input := antlr.NewInputStream(sql) + lexer := sqlite_parser.NewSQLiteLexer(input) + stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel) + parser := sqlite_parser.NewSQLiteParser(stream) + parser.BuildParseTrees = true + ctx := parser.Parse() + visitor := SqlVisitor{BaseSQLiteParserVisitor: &sqlite_parser.BaseSQLiteParserVisitor{}} + chl := ctx.GetChildren() + statList := visitor.Visit(chl[0]) + emptyFile := SqlFile{ + inserts: []InsertInto{}, + views: []CreateView{}, + tables: []CreateTable{}, + indexes: []CreateIndex{}, + triggers: []CreateTrigger{}, + } + + for _, s := range statList { + + } +}