Skip to content

Commit

Permalink
Run helper_generate_grammar_targets.sh with new antlr 4.13
Browse files Browse the repository at this point in the history
  • Loading branch information
svengiegerich committed Oct 30, 2023
1 parent dcfc934 commit 3ba44c8
Show file tree
Hide file tree
Showing 17 changed files with 1,007 additions and 981 deletions.
4 changes: 2 additions & 2 deletions src/pytsql/grammar/TSqlLexer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated from TSqlLexer.g4 by ANTLR 4.11.1
# Generated from TSqlLexer.g4 by ANTLR 4.13.1
from antlr4 import *
from io import StringIO
import sys
Expand Down Expand Up @@ -7781,7 +7781,7 @@ class TSqlLexer(Lexer):

def __init__(self, input=None, output:TextIO = sys.stdout):
super().__init__(input, output)
self.checkVersion("4.11.1")
self.checkVersion("4.13.1")
self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())
self._actions = None
self._predicates = None
Expand Down
146 changes: 73 additions & 73 deletions src/pytsql/grammar/TSqlParser.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/pytsql/grammar/TSqlParserListener.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated from TSqlParser.g4 by ANTLR 4.11.1
# Generated from TSqlParser.g4 by ANTLR 4.13.1
from antlr4 import *
if __name__ is not None and "." in __name__:
if "." in __name__:
from .TSqlParser import TSqlParser
else:
from TSqlParser import TSqlParser
Expand Down
15 changes: 14 additions & 1 deletion src/pytsql/grammar/cpp_src/TSqlLexer.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

// Generated from TSqlLexer.g4 by ANTLR 4.11.1
// Generated from TSqlLexer.g4 by ANTLR 4.13.1


#include "TSqlLexer.h"
Expand Down Expand Up @@ -42,10 +42,19 @@ struct TSqlLexerStaticData final {
};

::antlr4::internal::OnceFlag tsqllexerLexerOnceFlag;
#if ANTLR4_USE_THREAD_LOCAL_CACHE
static thread_local
#endif
TSqlLexerStaticData *tsqllexerLexerStaticData = nullptr;

void tsqllexerLexerInitialize() {
#if ANTLR4_USE_THREAD_LOCAL_CACHE
if (tsqllexerLexerStaticData != nullptr) {
return;
}
#else
assert(tsqllexerLexerStaticData == nullptr);
#endif
auto staticData = std::make_unique<TSqlLexerStaticData>(
std::vector<std::string>{
"ABORT", "ABORT_AFTER_WAIT", "ABSENT", "ABSOLUTE", "ACCELERATED_DATABASE_RECOVERY",
Expand Down Expand Up @@ -6160,5 +6169,9 @@ const atn::ATN& TSqlLexer::getATN() const {


void TSqlLexer::initialize() {
#if ANTLR4_USE_THREAD_LOCAL_CACHE
tsqllexerLexerInitialize();
#else
::antlr4::internal::call_once(tsqllexerLexerOnceFlag, tsqllexerLexerInitialize);
#endif
}
2 changes: 1 addition & 1 deletion src/pytsql/grammar/cpp_src/TSqlLexer.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#undef PLATFORM
// Generated from TSqlLexer.g4 by ANTLR 4.11.1
// Generated from TSqlLexer.g4 by ANTLR 4.13.1

#pragma once

Expand Down
1,795 changes: 904 additions & 891 deletions src/pytsql/grammar/cpp_src/TSqlParser.cpp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/pytsql/grammar/cpp_src/TSqlParser.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

// Generated from TSqlParser.g4 by ANTLR 4.11.1
// Generated from TSqlParser.g4 by ANTLR 4.13.1

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion src/pytsql/grammar/cpp_src/TSqlParserBaseVisitor.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

// Generated from TSqlParser.g4 by ANTLR 4.11.1
// Generated from TSqlParser.g4 by ANTLR 4.13.1


#include "TSqlParserBaseVisitor.h"
Expand Down
2 changes: 1 addition & 1 deletion src/pytsql/grammar/cpp_src/TSqlParserBaseVisitor.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

// Generated from TSqlParser.g4 by ANTLR 4.11.1
// Generated from TSqlParser.g4 by ANTLR 4.13.1

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion src/pytsql/grammar/cpp_src/TSqlParserVisitor.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

// Generated from TSqlParser.g4 by ANTLR 4.11.1
// Generated from TSqlParser.g4 by ANTLR 4.13.1


#include "TSqlParserVisitor.h"
Expand Down
2 changes: 1 addition & 1 deletion src/pytsql/grammar/cpp_src/TSqlParserVisitor.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

// Generated from TSqlParser.g4 by ANTLR 4.11.1
// Generated from TSqlParser.g4 by ANTLR 4.13.1

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion src/pytsql/grammar/cpp_src/sa_tsql_cpp_parser.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file was auto-generated by speedy-antlr-tool v1.4.1
* This file was auto-generated by speedy-antlr-tool v1.4.3
* https://github.com/amykyta3/speedy-antlr-tool
*/

Expand Down
2 changes: 1 addition & 1 deletion src/pytsql/grammar/cpp_src/sa_tsql_translator.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file was auto-generated by speedy-antlr-tool v1.4.1
* This file was auto-generated by speedy-antlr-tool v1.4.3
* https://github.com/amykyta3/speedy-antlr-tool
*/

Expand Down
2 changes: 1 addition & 1 deletion src/pytsql/grammar/cpp_src/sa_tsql_translator.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file was auto-generated by speedy-antlr-tool v1.4.1
* This file was auto-generated by speedy-antlr-tool v1.4.3
* https://github.com/amykyta3/speedy-antlr-tool
*/

Expand Down
2 changes: 1 addition & 1 deletion src/pytsql/grammar/cpp_src/speedy_antlr.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file was auto-generated by speedy-antlr-tool v1.4.1
* This file was auto-generated by speedy-antlr-tool v1.4.3
* https://github.com/amykyta3/speedy-antlr-tool
*/

Expand Down
2 changes: 1 addition & 1 deletion src/pytsql/grammar/cpp_src/speedy_antlr.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* This file was auto-generated by speedy-antlr-tool v1.4.1
* This file was auto-generated by speedy-antlr-tool v1.4.3
* https://github.com/amykyta3/speedy-antlr-tool
*/

Expand Down
2 changes: 1 addition & 1 deletion src/pytsql/grammar/sa_tsql.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was auto-generated by speedy-antlr-tool v1.4.1
# This file was auto-generated by speedy-antlr-tool v1.4.3
# https://github.com/amykyta3/speedy-antlr-tool

import sys
Expand Down

0 comments on commit 3ba44c8

Please sign in to comment.