# Generated from SQLParser.g4 by ANTLR 4.11.1
# encoding: utf-8
from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
	from typing import TextIO
else:
	from typing.io import TextIO

def serializedATN():
    return [
        4,1,241,684,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,
        7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,
        13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,
        20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,
        26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,
        33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,
        39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,
        46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,
        52,2,53,7,53,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,3,1,118,8,1,1,2,
        1,2,3,2,122,8,2,1,3,1,3,1,3,1,3,1,4,1,4,1,4,3,4,131,8,4,1,4,1,4,
        1,4,1,4,1,4,1,4,1,4,3,4,140,8,4,1,4,1,4,1,4,3,4,145,8,4,1,4,1,4,
        1,4,3,4,150,8,4,1,4,1,4,3,4,154,8,4,1,5,1,5,1,5,3,5,159,8,5,1,6,
        1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,
        13,1,13,3,13,178,8,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,
        17,1,17,1,18,1,18,1,18,4,18,193,8,18,11,18,12,18,194,3,18,197,8,
        18,1,19,1,19,1,19,5,19,202,8,19,10,19,12,19,205,9,19,1,19,3,19,208,
        8,19,1,20,1,20,1,20,3,20,213,8,20,1,20,3,20,216,8,20,1,21,4,21,219,
        8,21,11,21,12,21,220,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,
        1,22,1,22,3,22,234,8,22,1,23,1,23,1,23,3,23,239,8,23,1,24,1,24,1,
        24,3,24,244,8,24,1,25,1,25,1,25,3,25,249,8,25,1,26,1,26,1,26,3,26,
        254,8,26,1,27,1,27,1,27,3,27,259,8,27,1,28,1,28,1,28,3,28,264,8,
        28,1,29,1,29,1,29,3,29,269,8,29,1,30,1,30,3,30,273,8,30,1,30,3,30,
        276,8,30,1,31,1,31,1,31,3,31,281,8,31,1,32,1,32,1,32,3,32,286,8,
        32,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,
        33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,3,33,308,8,33,1,34,1,34,3,
        34,312,8,34,1,34,3,34,315,8,34,1,34,3,34,318,8,34,1,35,1,35,3,35,
        322,8,35,1,35,3,35,325,8,35,1,35,3,35,328,8,35,1,36,1,36,1,36,3,
        36,333,8,36,1,36,3,36,336,8,36,1,37,1,37,1,37,3,37,341,8,37,1,37,
        3,37,344,8,37,1,38,1,38,4,38,348,8,38,11,38,12,38,349,1,38,3,38,
        353,8,38,1,38,3,38,356,8,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,
        39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,
        39,5,39,379,8,39,10,39,12,39,382,9,39,3,39,384,8,39,1,39,3,39,387,
        8,39,1,39,3,39,390,8,39,1,40,1,40,1,40,3,40,395,8,40,1,40,3,40,398,
        8,40,1,41,1,41,1,41,3,41,403,8,41,1,41,3,41,406,8,41,1,42,1,42,1,
        42,1,42,1,42,1,42,1,42,3,42,415,8,42,1,42,3,42,418,8,42,1,42,3,42,
        421,8,42,1,43,1,43,1,43,3,43,426,8,43,1,43,3,43,429,8,43,1,44,1,
        44,3,44,433,8,44,1,44,3,44,436,8,44,1,45,1,45,1,45,1,45,1,45,3,45,
        443,8,45,1,45,3,45,446,8,45,1,45,3,45,449,8,45,1,46,1,46,1,46,3,
        46,454,8,46,1,46,3,46,457,8,46,1,47,1,47,1,47,3,47,462,8,47,1,48,
        1,48,1,48,3,48,467,8,48,1,49,1,49,3,49,471,8,49,1,49,5,49,474,8,
        49,10,49,12,49,477,9,49,1,49,3,49,480,8,49,1,49,3,49,483,8,49,1,
        50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,
        50,1,50,3,50,500,8,50,1,50,1,50,4,50,504,8,50,11,50,12,50,505,1,
        50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,
        50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,
        50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,3,50,543,8,50,3,50,545,
        8,50,1,50,3,50,548,8,50,1,50,3,50,551,8,50,1,51,1,51,1,51,1,51,1,
        51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,
        51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,4,51,579,8,51,11,51,12,
        51,580,1,51,1,51,1,51,1,51,1,51,5,51,588,8,51,10,51,12,51,591,9,
        51,3,51,593,8,51,1,51,3,51,596,8,51,1,51,3,51,599,8,51,1,52,1,52,
        1,52,1,52,5,52,605,8,52,10,52,12,52,608,9,52,1,52,1,52,1,52,1,52,
        1,52,1,52,1,52,1,52,1,52,1,52,1,52,5,52,621,8,52,10,52,12,52,624,
        9,52,1,52,1,52,1,52,4,52,629,8,52,11,52,12,52,630,1,52,1,52,1,52,
        1,52,1,52,1,52,1,52,3,52,640,8,52,1,52,3,52,643,8,52,1,52,3,52,646,
        8,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,4,53,
        659,8,53,11,53,12,53,660,1,53,1,53,1,53,3,53,666,8,53,1,53,1,53,
        1,53,1,53,1,53,1,53,1,53,1,53,3,53,676,8,53,1,53,3,53,679,8,53,1,
        53,3,53,682,8,53,1,53,0,0,54,0,2,4,6,8,10,12,14,16,18,20,22,24,26,
        28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,
        72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,0,14,1,
        0,57,58,2,0,66,67,69,69,1,0,76,80,3,0,20,20,22,30,54,54,1,0,14,15,
        1,0,11,12,1,0,144,145,1,1,17,17,1,0,191,192,2,0,201,202,205,210,
        1,0,214,215,1,0,212,213,1,0,221,222,1,0,219,220,789,0,108,1,0,0,
        0,2,117,1,0,0,0,4,121,1,0,0,0,6,123,1,0,0,0,8,127,1,0,0,0,10,155,
        1,0,0,0,12,160,1,0,0,0,14,162,1,0,0,0,16,164,1,0,0,0,18,166,1,0,
        0,0,20,168,1,0,0,0,22,170,1,0,0,0,24,172,1,0,0,0,26,174,1,0,0,0,
        28,179,1,0,0,0,30,181,1,0,0,0,32,183,1,0,0,0,34,185,1,0,0,0,36,189,
        1,0,0,0,38,198,1,0,0,0,40,209,1,0,0,0,42,218,1,0,0,0,44,233,1,0,
        0,0,46,235,1,0,0,0,48,240,1,0,0,0,50,245,1,0,0,0,52,250,1,0,0,0,
        54,255,1,0,0,0,56,260,1,0,0,0,58,265,1,0,0,0,60,270,1,0,0,0,62,277,
        1,0,0,0,64,282,1,0,0,0,66,307,1,0,0,0,68,309,1,0,0,0,70,319,1,0,
        0,0,72,329,1,0,0,0,74,337,1,0,0,0,76,345,1,0,0,0,78,357,1,0,0,0,
        80,391,1,0,0,0,82,399,1,0,0,0,84,407,1,0,0,0,86,422,1,0,0,0,88,430,
        1,0,0,0,90,437,1,0,0,0,92,450,1,0,0,0,94,458,1,0,0,0,96,463,1,0,
        0,0,98,468,1,0,0,0,100,484,1,0,0,0,102,552,1,0,0,0,104,600,1,0,0,
        0,106,647,1,0,0,0,108,109,3,2,1,0,109,110,5,0,0,1,110,1,1,0,0,0,
        111,118,3,66,33,0,112,118,3,38,19,0,113,118,3,40,20,0,114,118,3,
        4,2,0,115,118,3,44,22,0,116,118,5,0,0,1,117,111,1,0,0,0,117,112,
        1,0,0,0,117,113,1,0,0,0,117,114,1,0,0,0,117,115,1,0,0,0,117,116,
        1,0,0,0,118,3,1,0,0,0,119,122,3,8,4,0,120,122,3,6,3,0,121,119,1,
        0,0,0,121,120,1,0,0,0,122,5,1,0,0,0,123,124,5,1,0,0,124,125,5,57,
        0,0,125,126,3,28,14,0,126,7,1,0,0,0,127,128,5,1,0,0,128,130,3,10,
        5,0,129,131,5,56,0,0,130,129,1,0,0,0,130,131,1,0,0,0,131,149,1,0,
        0,0,132,133,3,12,6,0,133,134,5,58,0,0,134,135,3,14,7,0,135,139,5,
        58,0,0,136,137,3,16,8,0,137,138,5,58,0,0,138,140,1,0,0,0,139,136,
        1,0,0,0,139,140,1,0,0,0,140,141,1,0,0,0,141,142,5,62,0,0,142,144,
        3,18,9,0,143,145,3,24,12,0,144,143,1,0,0,0,144,145,1,0,0,0,145,146,
        1,0,0,0,146,147,7,0,0,0,147,148,3,26,13,0,148,150,1,0,0,0,149,132,
        1,0,0,0,149,150,1,0,0,0,150,153,1,0,0,0,151,152,5,59,0,0,152,154,
        3,36,18,0,153,151,1,0,0,0,153,154,1,0,0,0,154,9,1,0,0,0,155,158,
        3,20,10,0,156,157,5,57,0,0,157,159,3,22,11,0,158,156,1,0,0,0,158,
        159,1,0,0,0,159,11,1,0,0,0,160,161,5,65,0,0,161,13,1,0,0,0,162,163,
        5,69,0,0,163,15,1,0,0,0,164,165,5,69,0,0,165,17,1,0,0,0,166,167,
        7,1,0,0,167,19,1,0,0,0,168,169,5,69,0,0,169,21,1,0,0,0,170,171,5,
        69,0,0,171,23,1,0,0,0,172,173,5,68,0,0,173,25,1,0,0,0,174,177,5,
        69,0,0,175,176,5,58,0,0,176,178,5,69,0,0,177,175,1,0,0,0,177,178,
        1,0,0,0,178,27,1,0,0,0,179,180,5,69,0,0,180,29,1,0,0,0,181,182,5,
        69,0,0,182,31,1,0,0,0,183,184,5,69,0,0,184,33,1,0,0,0,185,186,3,
        30,15,0,186,187,5,63,0,0,187,188,3,32,16,0,188,35,1,0,0,0,189,196,
        3,34,17,0,190,191,5,64,0,0,191,193,3,34,17,0,192,190,1,0,0,0,193,
        194,1,0,0,0,194,192,1,0,0,0,194,195,1,0,0,0,195,197,1,0,0,0,196,
        192,1,0,0,0,196,197,1,0,0,0,197,37,1,0,0,0,198,203,5,3,0,0,199,202,
        3,42,21,0,200,202,5,52,0,0,201,199,1,0,0,0,201,200,1,0,0,0,202,205,
        1,0,0,0,203,201,1,0,0,0,203,204,1,0,0,0,204,207,1,0,0,0,205,203,
        1,0,0,0,206,208,5,17,0,0,207,206,1,0,0,0,207,208,1,0,0,0,208,39,
        1,0,0,0,209,210,5,2,0,0,210,212,7,2,0,0,211,213,5,81,0,0,212,211,
        1,0,0,0,212,213,1,0,0,0,213,215,1,0,0,0,214,216,5,82,0,0,215,214,
        1,0,0,0,215,216,1,0,0,0,216,41,1,0,0,0,217,219,7,3,0,0,218,217,1,
        0,0,0,219,220,1,0,0,0,220,218,1,0,0,0,220,221,1,0,0,0,221,43,1,0,
        0,0,222,234,3,46,23,0,223,234,3,48,24,0,224,234,3,50,25,0,225,234,
        3,52,26,0,226,234,3,54,27,0,227,234,3,56,28,0,228,234,3,62,31,0,
        229,234,3,58,29,0,230,234,3,60,30,0,231,234,3,64,32,0,232,234,5,
        17,0,0,233,222,1,0,0,0,233,223,1,0,0,0,233,224,1,0,0,0,233,225,1,
        0,0,0,233,226,1,0,0,0,233,227,1,0,0,0,233,228,1,0,0,0,233,229,1,
        0,0,0,233,230,1,0,0,0,233,231,1,0,0,0,233,232,1,0,0,0,234,45,1,0,
        0,0,235,236,5,5,0,0,236,238,5,85,0,0,237,239,5,17,0,0,238,237,1,
        0,0,0,238,239,1,0,0,0,239,47,1,0,0,0,240,241,5,10,0,0,241,243,5,
        85,0,0,242,244,5,17,0,0,243,242,1,0,0,0,243,244,1,0,0,0,244,49,1,
        0,0,0,245,246,5,6,0,0,246,248,5,85,0,0,247,249,5,17,0,0,248,247,
        1,0,0,0,248,249,1,0,0,0,249,51,1,0,0,0,250,251,5,7,0,0,251,253,5,
        85,0,0,252,254,5,17,0,0,253,252,1,0,0,0,253,254,1,0,0,0,254,53,1,
        0,0,0,255,256,5,9,0,0,256,258,5,85,0,0,257,259,5,17,0,0,258,257,
        1,0,0,0,258,259,1,0,0,0,259,55,1,0,0,0,260,261,5,8,0,0,261,263,5,
        85,0,0,262,264,5,17,0,0,263,262,1,0,0,0,263,264,1,0,0,0,264,57,1,
        0,0,0,265,266,5,13,0,0,266,268,5,85,0,0,267,269,5,17,0,0,268,267,
        1,0,0,0,268,269,1,0,0,0,269,59,1,0,0,0,270,272,7,4,0,0,271,273,5,
        85,0,0,272,271,1,0,0,0,272,273,1,0,0,0,273,275,1,0,0,0,274,276,5,
        17,0,0,275,274,1,0,0,0,275,276,1,0,0,0,276,61,1,0,0,0,277,278,7,
        5,0,0,278,280,5,90,0,0,279,281,5,17,0,0,280,279,1,0,0,0,280,281,
        1,0,0,0,281,63,1,0,0,0,282,283,5,16,0,0,283,285,5,90,0,0,284,286,
        5,17,0,0,285,284,1,0,0,0,285,286,1,0,0,0,286,65,1,0,0,0,287,308,
        3,80,40,0,288,308,3,78,39,0,289,308,3,82,41,0,290,308,3,76,38,0,
        291,308,3,84,42,0,292,308,3,86,43,0,293,308,3,88,44,0,294,308,3,
        90,45,0,295,308,3,98,49,0,296,308,3,72,36,0,297,308,3,68,34,0,298,
        308,3,70,35,0,299,308,3,74,37,0,300,308,3,92,46,0,301,308,3,96,48,
        0,302,308,3,94,47,0,303,308,3,100,50,0,304,308,3,102,51,0,305,308,
        3,104,52,0,306,308,3,106,53,0,307,287,1,0,0,0,307,288,1,0,0,0,307,
        289,1,0,0,0,307,290,1,0,0,0,307,291,1,0,0,0,307,292,1,0,0,0,307,
        293,1,0,0,0,307,294,1,0,0,0,307,295,1,0,0,0,307,296,1,0,0,0,307,
        297,1,0,0,0,307,298,1,0,0,0,307,299,1,0,0,0,307,300,1,0,0,0,307,
        301,1,0,0,0,307,302,1,0,0,0,307,303,1,0,0,0,307,304,1,0,0,0,307,
        305,1,0,0,0,307,306,1,0,0,0,308,67,1,0,0,0,309,311,5,32,0,0,310,
        312,5,52,0,0,311,310,1,0,0,0,311,312,1,0,0,0,312,314,1,0,0,0,313,
        315,5,19,0,0,314,313,1,0,0,0,314,315,1,0,0,0,315,317,1,0,0,0,316,
        318,5,17,0,0,317,316,1,0,0,0,317,318,1,0,0,0,318,69,1,0,0,0,319,
        321,5,33,0,0,320,322,5,52,0,0,321,320,1,0,0,0,321,322,1,0,0,0,322,
        324,1,0,0,0,323,325,5,19,0,0,324,323,1,0,0,0,324,325,1,0,0,0,325,
        327,1,0,0,0,326,328,5,17,0,0,327,326,1,0,0,0,327,328,1,0,0,0,328,
        71,1,0,0,0,329,330,5,36,0,0,330,332,7,6,0,0,331,333,5,147,0,0,332,
        331,1,0,0,0,332,333,1,0,0,0,333,335,1,0,0,0,334,336,5,17,0,0,335,
        334,1,0,0,0,335,336,1,0,0,0,336,73,1,0,0,0,337,338,5,35,0,0,338,
        340,5,52,0,0,339,341,5,19,0,0,340,339,1,0,0,0,340,341,1,0,0,0,341,
        343,1,0,0,0,342,344,5,17,0,0,343,342,1,0,0,0,343,344,1,0,0,0,344,
        75,1,0,0,0,345,347,5,40,0,0,346,348,5,112,0,0,347,346,1,0,0,0,348,
        349,1,0,0,0,349,347,1,0,0,0,349,350,1,0,0,0,350,352,1,0,0,0,351,
        353,5,19,0,0,352,351,1,0,0,0,352,353,1,0,0,0,353,355,1,0,0,0,354,
        356,5,17,0,0,355,354,1,0,0,0,355,356,1,0,0,0,356,77,1,0,0,0,357,
        383,5,41,0,0,358,359,5,101,0,0,359,384,5,109,0,0,360,361,5,102,0,
        0,361,384,5,109,0,0,362,380,5,103,0,0,363,364,5,105,0,0,364,365,
        5,100,0,0,365,379,5,109,0,0,366,367,5,104,0,0,367,368,5,100,0,0,
        368,379,5,109,0,0,369,370,5,106,0,0,370,371,5,100,0,0,371,379,5,
        109,0,0,372,373,5,107,0,0,373,374,5,100,0,0,374,379,5,109,0,0,375,
        376,5,108,0,0,376,377,5,100,0,0,377,379,5,109,0,0,378,363,1,0,0,
        0,378,366,1,0,0,0,378,369,1,0,0,0,378,372,1,0,0,0,378,375,1,0,0,
        0,379,382,1,0,0,0,380,378,1,0,0,0,380,381,1,0,0,0,381,384,1,0,0,
        0,382,380,1,0,0,0,383,358,1,0,0,0,383,360,1,0,0,0,383,362,1,0,0,
        0,384,386,1,0,0,0,385,387,5,19,0,0,386,385,1,0,0,0,386,387,1,0,0,
        0,387,389,1,0,0,0,388,390,5,17,0,0,389,388,1,0,0,0,389,390,1,0,0,
        0,390,79,1,0,0,0,391,392,5,39,0,0,392,394,5,98,0,0,393,395,5,19,
        0,0,394,393,1,0,0,0,394,395,1,0,0,0,395,397,1,0,0,0,396,398,5,17,
        0,0,397,396,1,0,0,0,397,398,1,0,0,0,398,81,1,0,0,0,399,400,5,42,
        0,0,400,402,5,115,0,0,401,403,5,19,0,0,402,401,1,0,0,0,402,403,1,
        0,0,0,403,405,1,0,0,0,404,406,5,17,0,0,405,404,1,0,0,0,405,406,1,
        0,0,0,406,83,1,0,0,0,407,414,5,46,0,0,408,415,5,127,0,0,409,415,
        5,128,0,0,410,415,5,129,0,0,411,412,5,123,0,0,412,413,5,124,0,0,
        413,415,5,130,0,0,414,408,1,0,0,0,414,409,1,0,0,0,414,410,1,0,0,
        0,414,411,1,0,0,0,415,417,1,0,0,0,416,418,5,121,0,0,417,416,1,0,
        0,0,417,418,1,0,0,0,418,420,1,0,0,0,419,421,5,17,0,0,420,419,1,0,
        0,0,420,421,1,0,0,0,421,85,1,0,0,0,422,423,5,43,0,0,423,425,5,120,
        0,0,424,426,5,19,0,0,425,424,1,0,0,0,425,426,1,0,0,0,426,428,1,0,
        0,0,427,429,5,17,0,0,428,427,1,0,0,0,428,429,1,0,0,0,429,87,1,0,
        0,0,430,432,5,44,0,0,431,433,5,19,0,0,432,431,1,0,0,0,432,433,1,
        0,0,0,433,435,1,0,0,0,434,436,5,17,0,0,435,434,1,0,0,0,435,436,1,
        0,0,0,436,89,1,0,0,0,437,438,5,47,0,0,438,442,5,134,0,0,439,443,
        5,136,0,0,440,441,5,137,0,0,441,443,5,133,0,0,442,439,1,0,0,0,442,
        440,1,0,0,0,443,445,1,0,0,0,444,446,5,135,0,0,445,444,1,0,0,0,445,
        446,1,0,0,0,446,448,1,0,0,0,447,449,5,17,0,0,448,447,1,0,0,0,448,
        449,1,0,0,0,449,91,1,0,0,0,450,451,5,34,0,0,451,453,5,54,0,0,452,
        454,5,19,0,0,453,452,1,0,0,0,453,454,1,0,0,0,454,456,1,0,0,0,455,
        457,5,17,0,0,456,455,1,0,0,0,456,457,1,0,0,0,457,93,1,0,0,0,458,
        459,5,37,0,0,459,461,5,94,0,0,460,462,7,7,0,0,461,460,1,0,0,0,461,
        462,1,0,0,0,462,95,1,0,0,0,463,464,5,38,0,0,464,466,5,93,0,0,465,
        467,5,17,0,0,466,465,1,0,0,0,466,467,1,0,0,0,467,97,1,0,0,0,468,
        470,5,45,0,0,469,471,5,142,0,0,470,469,1,0,0,0,470,471,1,0,0,0,471,
        475,1,0,0,0,472,474,5,140,0,0,473,472,1,0,0,0,474,477,1,0,0,0,475,
        473,1,0,0,0,475,476,1,0,0,0,476,479,1,0,0,0,477,475,1,0,0,0,478,
        480,5,141,0,0,479,478,1,0,0,0,479,480,1,0,0,0,480,482,1,0,0,0,481,
        483,5,17,0,0,482,481,1,0,0,0,482,483,1,0,0,0,483,99,1,0,0,0,484,
        544,5,48,0,0,485,486,5,149,0,0,486,487,5,174,0,0,487,488,5,150,0,
        0,488,489,5,151,0,0,489,490,5,174,0,0,490,491,5,152,0,0,491,545,
        5,174,0,0,492,493,5,149,0,0,493,494,5,174,0,0,494,495,5,150,0,0,
        495,496,5,151,0,0,496,499,5,174,0,0,497,498,5,153,0,0,498,500,5,
        174,0,0,499,497,1,0,0,0,499,500,1,0,0,0,500,545,1,0,0,0,501,503,
        5,154,0,0,502,504,5,174,0,0,503,502,1,0,0,0,504,505,1,0,0,0,505,
        503,1,0,0,0,505,506,1,0,0,0,506,545,1,0,0,0,507,545,5,155,0,0,508,
        509,5,156,0,0,509,545,5,174,0,0,510,511,5,157,0,0,511,545,5,174,
        0,0,512,542,5,159,0,0,513,514,5,160,0,0,514,515,5,174,0,0,515,543,
        5,158,0,0,516,543,5,161,0,0,517,518,5,162,0,0,518,543,5,174,0,0,
        519,520,5,163,0,0,520,521,5,174,0,0,521,522,5,158,0,0,522,543,5,
        158,0,0,523,524,5,164,0,0,524,525,5,174,0,0,525,543,5,158,0,0,526,
        527,5,165,0,0,527,528,5,174,0,0,528,543,5,174,0,0,529,530,5,166,
        0,0,530,531,5,174,0,0,531,543,5,174,0,0,532,533,5,167,0,0,533,543,
        5,174,0,0,534,535,5,168,0,0,535,536,5,174,0,0,536,543,5,174,0,0,
        537,538,5,169,0,0,538,543,5,174,0,0,539,540,5,170,0,0,540,541,5,
        174,0,0,541,543,5,158,0,0,542,513,1,0,0,0,542,516,1,0,0,0,542,517,
        1,0,0,0,542,519,1,0,0,0,542,523,1,0,0,0,542,526,1,0,0,0,542,529,
        1,0,0,0,542,532,1,0,0,0,542,534,1,0,0,0,542,537,1,0,0,0,542,539,
        1,0,0,0,543,545,1,0,0,0,544,485,1,0,0,0,544,492,1,0,0,0,544,501,
        1,0,0,0,544,507,1,0,0,0,544,508,1,0,0,0,544,510,1,0,0,0,544,512,
        1,0,0,0,545,547,1,0,0,0,546,548,5,172,0,0,547,546,1,0,0,0,547,548,
        1,0,0,0,548,550,1,0,0,0,549,551,5,17,0,0,550,549,1,0,0,0,550,551,
        1,0,0,0,551,101,1,0,0,0,552,592,5,49,0,0,553,554,5,190,0,0,554,593,
        7,8,0,0,555,556,5,183,0,0,556,593,5,194,0,0,557,558,5,180,0,0,558,
        593,5,194,0,0,559,560,5,185,0,0,560,593,5,194,0,0,561,562,5,184,
        0,0,562,593,5,194,0,0,563,564,5,186,0,0,564,593,5,194,0,0,565,566,
        5,182,0,0,566,593,5,194,0,0,567,568,5,188,0,0,568,593,5,189,0,0,
        569,570,5,187,0,0,570,571,5,189,0,0,571,572,5,193,0,0,572,593,5,
        194,0,0,573,574,5,181,0,0,574,578,5,194,0,0,575,576,5,194,0,0,576,
        577,5,177,0,0,577,579,5,194,0,0,578,575,1,0,0,0,579,580,1,0,0,0,
        580,578,1,0,0,0,580,581,1,0,0,0,581,593,1,0,0,0,582,583,5,179,0,
        0,583,589,5,194,0,0,584,585,5,194,0,0,585,586,5,177,0,0,586,588,
        5,194,0,0,587,584,1,0,0,0,588,591,1,0,0,0,589,587,1,0,0,0,589,590,
        1,0,0,0,590,593,1,0,0,0,591,589,1,0,0,0,592,553,1,0,0,0,592,555,
        1,0,0,0,592,557,1,0,0,0,592,559,1,0,0,0,592,561,1,0,0,0,592,563,
        1,0,0,0,592,565,1,0,0,0,592,567,1,0,0,0,592,569,1,0,0,0,592,573,
        1,0,0,0,592,582,1,0,0,0,593,595,1,0,0,0,594,596,5,176,0,0,595,594,
        1,0,0,0,595,596,1,0,0,0,596,598,1,0,0,0,597,599,5,17,0,0,598,597,
        1,0,0,0,598,599,1,0,0,0,599,103,1,0,0,0,600,639,5,50,0,0,601,602,
        5,223,0,0,602,606,5,223,0,0,603,605,7,9,0,0,604,603,1,0,0,0,605,
        608,1,0,0,0,606,604,1,0,0,0,606,607,1,0,0,0,607,640,1,0,0,0,608,
        606,1,0,0,0,609,610,7,10,0,0,610,640,5,223,0,0,611,612,5,203,0,0,
        612,613,5,223,0,0,613,614,5,197,0,0,614,640,5,223,0,0,615,616,5,
        204,0,0,616,640,5,223,0,0,617,640,5,216,0,0,618,622,5,199,0,0,619,
        621,7,9,0,0,620,619,1,0,0,0,621,624,1,0,0,0,622,620,1,0,0,0,622,
        623,1,0,0,0,623,640,1,0,0,0,624,622,1,0,0,0,625,626,5,199,0,0,626,
        628,5,211,0,0,627,629,7,11,0,0,628,627,1,0,0,0,629,630,1,0,0,0,630,
        628,1,0,0,0,630,631,1,0,0,0,631,640,1,0,0,0,632,633,5,199,0,0,633,
        634,5,217,0,0,634,640,7,12,0,0,635,636,5,199,0,0,636,637,7,13,0,
        0,637,638,5,218,0,0,638,640,5,223,0,0,639,601,1,0,0,0,639,609,1,
        0,0,0,639,611,1,0,0,0,639,615,1,0,0,0,639,617,1,0,0,0,639,618,1,
        0,0,0,639,625,1,0,0,0,639,632,1,0,0,0,639,635,1,0,0,0,640,642,1,
        0,0,0,641,643,5,196,0,0,642,641,1,0,0,0,642,643,1,0,0,0,643,645,
        1,0,0,0,644,646,5,17,0,0,645,644,1,0,0,0,645,646,1,0,0,0,646,105,
        1,0,0,0,647,675,5,51,0,0,648,649,5,226,0,0,649,650,5,227,0,0,650,
        651,5,228,0,0,651,676,5,238,0,0,652,653,5,229,0,0,653,654,5,231,
        0,0,654,655,5,230,0,0,655,656,5,238,0,0,656,658,5,235,0,0,657,659,
        5,239,0,0,658,657,1,0,0,0,659,660,1,0,0,0,660,658,1,0,0,0,660,661,
        1,0,0,0,661,662,1,0,0,0,662,665,5,241,0,0,663,664,5,232,0,0,664,
        666,5,233,0,0,665,663,1,0,0,0,665,666,1,0,0,0,666,676,1,0,0,0,667,
        668,5,236,0,0,668,669,5,231,0,0,669,670,5,230,0,0,670,671,5,238,
        0,0,671,672,5,237,0,0,672,673,5,231,0,0,673,674,5,230,0,0,674,676,
        5,238,0,0,675,648,1,0,0,0,675,652,1,0,0,0,675,667,1,0,0,0,676,678,
        1,0,0,0,677,679,5,225,0,0,678,677,1,0,0,0,678,679,1,0,0,0,679,681,
        1,0,0,0,680,682,5,17,0,0,681,680,1,0,0,0,681,682,1,0,0,0,682,107,
        1,0,0,0,92,117,121,130,139,144,149,153,158,177,194,196,201,203,207,
        212,215,220,233,238,243,248,253,258,263,268,272,275,280,285,307,
        311,314,317,321,324,327,332,335,340,343,349,352,355,378,380,383,
        386,389,394,397,402,405,414,417,420,425,428,432,435,442,445,448,
        453,456,461,466,470,475,479,482,499,505,542,544,547,550,580,589,
        592,595,598,606,622,630,639,642,645,660,665,675,678,681
    ]

class SQLParser ( Parser ):

    grammarFileName = "SQLParser.g4"

    atn = ATNDeserializer().deserialize(serializedATN())

    decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]

    sharedContextCache = PredictionContextCache()

    literalNames = [ "<INVALID>", "'_CONNECT'", "'_SESSION'", "'_DISCONNECT'", 
                     "<INVALID>", "<INVALID>", "'INSERT'", "'UPDATE'", "'SELECT'", 
                     "'DELETE'", "'REPLACE'", "'DECLARE'", "<INVALID>", 
                     "'DROP'", "'COMMIT'", "'ROLLBACK'", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "'.'", "<INVALID>", "'('", "')'", "<INVALID>", "<INVALID>", 
                     "'\"'", "'''", "'\\'", "<INVALID>", "'_EXIT'", "'_QUIT'", 
                     "'_SPOOL'", "'_SLEEP'", "'_USE'", "<INVALID>", "'> {%'", 
                     "'_ASSERT'", "'_START'", "'_LOAD'", "'_HOST'", "'_IF'", 
                     "'_ENDIF'", "'_SET'", "'_LOOP'", "'_WHENEVER'", "'_SSH'", 
                     "'_JOB'", "'_COMPARE'", "'_DATA'", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'?'", "'#'", "'|'", "'//'", "<INVALID>", 
                     "'&'", "'JDBC'", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'HINT'", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'RELEASE'", 
                     "<INVALID>", "'SAVEURL'", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'PLUGIN'", 
                     "'MAP'", "'JDBCDRIVER'", "<INVALID>", "'CLASS'", "'NAME'", 
                     "'PROPS'", "'URL'", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "'UNTIL'", "<INVALID>", "<INVALID>", "'BREAK'", "'END'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'ERROR'", "<INVALID>", "<INVALID>", "'EXIT'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "'API'", "'SQL'", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "'CONNECT'", "'WITH'", "'USER'", 
                     "'KEYFILE'", "'PASSWORD'", "'EXECUTE'", "'DISCONNECT'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'SFTP'", "'CHMOD'", 
                     "'GETCWD'", "'CHDIR'", "'CHOWN'", "'MKDIR'", "'GET'", 
                     "'PUT'", "'REMOVE'", "'RENAME'", "'LISTDIR'", "'TRUNCATE'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'START'", "'WAIT'", 
                     "'SHUTDOWN'", "'ABORT'", "'TIMER'", "'REGISTER'", "'DEREGISTER'", 
                     "'WORKER'", "'JOBMANAGER'", "'ON'", "'OFF'", "'TO'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'=>'", "<INVALID>", 
                     "<INVALID>", "'UNSET'", "'MASK'", "'NOMASK'", "'MASKLINE'", 
                     "'NOMASKLINE'", "'CASE'", "'NOCASE'", "'IGBLANK'", 
                     "'NOIGBLANK'", "'TRIM'", "'NOTRIM'", "'OUTPUT'", "'CONSOLE'", 
                     "'DIFFFILE'", "'SKIPLINE'", "'NOSKIPLINE'", "'RESET'", 
                     "'ALGORITHM'", "'ENCODING'", "'WORK'", "'REFERENCE'", 
                     "'LCS'", "'MYERS'", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'SEEDFILE'", "'DIR'", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'ROWS'", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "'CONVERT'", "'FROM'" ]

    symbolicNames = [ "<INVALID>", "CONNECT", "SESSION", "DISCONNECT", "MINUS_MINUS_COMMENT", 
                      "SQL_CREATE", "SQL_INSERT", "SQL_UPDATE", "SQL_SELECT", 
                      "SQL_DELETE", "SQL_REPLACE", "SQL_DECLARE", "SQL_BEGIN", 
                      "SQL_DROP", "SQL_COMMIT", "SQL_ROLLBACK", "SQL_CREATE_PROCEDURE", 
                      "CRLF", "COMMA", "SEMICOLON", "COLON", "AT", "DOT", 
                      "SLASH", "BRACKET_OPEN", "BRACKET_CLOSE", "SQUARE_OPEN", 
                      "SQUARE_CLOSE", "DOUBLE_QUOTE", "SINGLE_QUOTE", "ESCAPE", 
                      "SPACE", "EXIT", "QUIT", "SPOOL", "SLEEP", "USE", 
                      "ECHO_OPEN", "SCRIPT_OPEN", "ASSERT", "START", "LOAD", 
                      "HOST", "IF", "ENDIF", "SET", "LOOP", "WHENEVER", 
                      "SSH", "JOB", "COMPARE", "DATA", "INT", "DECIMAL", 
                      "String", "CONNECT_SPACE", "CONNECT_AT", "CONNECT_SLASH", 
                      "CONNECT_COLON", "CONNECT_QUESTION", "CONNECT_POUND", 
                      "CONNECT_OR", "CONNECT_DASH", "CONNECT_EQUAL", "CONNECT_PARA_AND", 
                      "JDBC", "IPV4", "IPV6", "CONNECT_PORT", "CONNECT_STRING", 
                      "CommentString", "HINT_SP", "HINT", "HINT_CLOSE", 
                      "HINT_STRING", "SESSION_SPACE", "SESSION_SAVE", "SESSION_RELEASE", 
                      "SESSION_RESTORE", "SESSION_SAVEURL", "SESSION_SHOW", 
                      "SESSION_NAME", "SESSION_END", "SQL_CRLF", "SQL_SPACE", 
                      "SQL_END", "SQL_STRING", "SQL_SINGLE", "SQL_OTHER", 
                      "SQL_PROCEDURE_CRLF", "SQL_SLASH", "SQL_PROCEDURE_SLASH", 
                      "SQLProcedureStatement", "ScriptBlock", "EchoBlock", 
                      "ASSERT_SPACE", "ASSERT_OPEN", "ASSERT_CLOSE", "ASSERT_EXPRESSION", 
                      "LOAD_SPACE", "LOAD_EQUAL", "LOAD_PLUGIN", "LOAD_MAP", 
                      "LOAD_JDBCDRIVER", "LOAD_JDBCFILE", "LOAD_JDBCCLASS", 
                      "LOAD_JDBCNAME", "LOAD_JDBCPROP", "LOAD_JDBCURL", 
                      "LOAD_EXPRESSION", "LOAD_CRLF", "START_SPACE", "START_EXPRESSION", 
                      "START_CRLF", "HOST_SPACE", "HOST_EXPRESSION", "HOST_CRLF", 
                      "IF_SPACE", "IF_OPEN", "IF_CLOSE", "IF_EXPRESSION", 
                      "LOOP_SEMICOLON", "LOOP_SPACE", "LOOP_BEGIN", "LOOP_UNTIL", 
                      "LOOP_OPEN", "LOOP_CLOSE", "LOOP_BREAK", "LOOP_END", 
                      "LOOP_CONTINUE", "LOOP_EXPRESSION", "LOOP_CRLF", "WHENEVER_SPACE", 
                      "WHENEVER_EXITCODE", "WHENEVER_ERROR", "WHENEVER_SEMICOLON", 
                      "WHENEVER_CONTINUE", "WHENEVER_EXIT", "WHENEVER_CRLF", 
                      "SET_SPACE", "SET_EXPRESSION", "SET_SEMICOLON", "SET_AT", 
                      "SET_CRLF", "USE_API", "USE_SQL", "USE_SPACE", "USE_SEMICOLON", 
                      "USE_CRLF", "SSH_CONNECT", "SSH_WITH", "SSH_USER", 
                      "SSH_KEYFILE", "SSH_PASSWORD", "SSH_EXECUTE", "SSH_DISCONNECT", 
                      "SSH_SAVE", "SSH_RESTORE", "SSH_INT", "SFTP", "SFTP_CHMOD", 
                      "SFTP_GETCWD", "SFTP_CHDIR", "SFTP_CHOWN", "SFTP_MKDIR", 
                      "SFTP_GET", "SFTP_PUT", "SFTP_REMOVE", "SFTP_RENAME", 
                      "SFTP_LISTDIR", "SFTP_TRUNCATE", "SSH_SPACE", "SSH_SEMICOLON", 
                      "SSH_CRLF", "SSH_EXPRESSION", "JOB_SPACE", "JOB_SEMICOLON", 
                      "JOB_EQUAL", "JOB_CRLF", "JOB_CREATE", "JOB_SHOW", 
                      "JOB_SET", "JOB_START", "JOB_WAIT", "JOB_SHUTDOWN", 
                      "JOB_ABORT", "JOB_TIMER", "JOB_REGISTER", "JOB_DEREGISTER", 
                      "JOB_WORKER", "JOB_MANGER", "JOB_ON", "JOB_OFF", "JOB_TO", 
                      "JOB_EXPRESSION", "COMPARE_SPACE", "COMPARE_SEMICOLON", 
                      "COMPARE_EQUAL", "COMPARE_CRLF", "COMPARE_SET", "COMPARE_UNSET", 
                      "COMPARE_MASK", "COMPARE_NOMASK", "COMPARE_MASKLINE", 
                      "COMPARE_NOMASKLINE", "COMPARE_CASE", "COMPARE_NOCASE", 
                      "COMPARE_IGBLANK", "COMPARE_NOIGBLANK", "COMPARE_TRIM", 
                      "COMPARE_NOTRIM", "COMPARE_OUTPUT", "COMPARE_CONSOLE", 
                      "COMPARE_DIFFFILE", "COMPARE_SKIPLINE", "COMPARE_NOSKIPLINE", 
                      "COMPARE_RESET", "COMPARE_ALGORITHM", "COMPARE_ENCODING", 
                      "COMPARE_WORK", "COMPARE_REFERENCE", "COMPARE_LCS", 
                      "COMPARE_MYERS", "COMPARE_EXPRESSION", "DATA_SPACE", 
                      "DATA_SEMICOLON", "DATA_SET", "DATA_SEEDFILE", "DATA_DIR", 
                      "DATA_CREATE", "DATA_FILE", "DATA_FILETYPE", "DATA_ROWS", 
                      "DATA_INT", "DATA_COMMA", "DATACOLUMN_OPEN", "DATA_CONVERT", 
                      "DATA_FROM", "DATA_EXPRESSION", "DATACOLUMN_EXPRESSION", 
                      "DATACOLUMN_SPACE", "DATACOLUMN_CLOSE" ]

    RULE_prog = 0
    RULE_command = 1
    RULE_connect = 2
    RULE_connectlocal = 3
    RULE_connectjdbc = 4
    RULE_connectUserInfo = 5
    RULE_connectDriver = 6
    RULE_connectDriverSchema = 7
    RULE_connectDriverType = 8
    RULE_connectHost = 9
    RULE_connectUser = 10
    RULE_connectPassword = 11
    RULE_connectPort = 12
    RULE_connectService = 13
    RULE_connectlocalService = 14
    RULE_connectParameterName = 15
    RULE_connectParameterValue = 16
    RULE_connectParameter = 17
    RULE_connectParameters = 18
    RULE_disconnect = 19
    RULE_session = 20
    RULE_expression = 21
    RULE_sql = 22
    RULE_sqlCreate = 23
    RULE_sqlReplace = 24
    RULE_sqlInsert = 25
    RULE_sqlUpdate = 26
    RULE_sqlDelete = 27
    RULE_sqlSelect = 28
    RULE_sqlDrop = 29
    RULE_sqlCommitRollback = 30
    RULE_sqlDeclare = 31
    RULE_sqlCreateProcedure = 32
    RULE_baseCommand = 33
    RULE_exit = 34
    RULE_quit = 35
    RULE_use = 36
    RULE_sleep = 37
    RULE_start = 38
    RULE_load = 39
    RULE_assert = 40
    RULE_host = 41
    RULE_loop = 42
    RULE_if = 43
    RULE_endif = 44
    RULE_whenever = 45
    RULE_spool = 46
    RULE_echo = 47
    RULE_script = 48
    RULE_set = 49
    RULE_ssh = 50
    RULE_job = 51
    RULE_compare = 52
    RULE_data = 53

    ruleNames =  [ "prog", "command", "connect", "connectlocal", "connectjdbc", 
                   "connectUserInfo", "connectDriver", "connectDriverSchema", 
                   "connectDriverType", "connectHost", "connectUser", "connectPassword", 
                   "connectPort", "connectService", "connectlocalService", 
                   "connectParameterName", "connectParameterValue", "connectParameter", 
                   "connectParameters", "disconnect", "session", "expression", 
                   "sql", "sqlCreate", "sqlReplace", "sqlInsert", "sqlUpdate", 
                   "sqlDelete", "sqlSelect", "sqlDrop", "sqlCommitRollback", 
                   "sqlDeclare", "sqlCreateProcedure", "baseCommand", "exit", 
                   "quit", "use", "sleep", "start", "load", "assert", "host", 
                   "loop", "if", "endif", "whenever", "spool", "echo", "script", 
                   "set", "ssh", "job", "compare", "data" ]

    EOF = Token.EOF
    CONNECT=1
    SESSION=2
    DISCONNECT=3
    MINUS_MINUS_COMMENT=4
    SQL_CREATE=5
    SQL_INSERT=6
    SQL_UPDATE=7
    SQL_SELECT=8
    SQL_DELETE=9
    SQL_REPLACE=10
    SQL_DECLARE=11
    SQL_BEGIN=12
    SQL_DROP=13
    SQL_COMMIT=14
    SQL_ROLLBACK=15
    SQL_CREATE_PROCEDURE=16
    CRLF=17
    COMMA=18
    SEMICOLON=19
    COLON=20
    AT=21
    DOT=22
    SLASH=23
    BRACKET_OPEN=24
    BRACKET_CLOSE=25
    SQUARE_OPEN=26
    SQUARE_CLOSE=27
    DOUBLE_QUOTE=28
    SINGLE_QUOTE=29
    ESCAPE=30
    SPACE=31
    EXIT=32
    QUIT=33
    SPOOL=34
    SLEEP=35
    USE=36
    ECHO_OPEN=37
    SCRIPT_OPEN=38
    ASSERT=39
    START=40
    LOAD=41
    HOST=42
    IF=43
    ENDIF=44
    SET=45
    LOOP=46
    WHENEVER=47
    SSH=48
    JOB=49
    COMPARE=50
    DATA=51
    INT=52
    DECIMAL=53
    String=54
    CONNECT_SPACE=55
    CONNECT_AT=56
    CONNECT_SLASH=57
    CONNECT_COLON=58
    CONNECT_QUESTION=59
    CONNECT_POUND=60
    CONNECT_OR=61
    CONNECT_DASH=62
    CONNECT_EQUAL=63
    CONNECT_PARA_AND=64
    JDBC=65
    IPV4=66
    IPV6=67
    CONNECT_PORT=68
    CONNECT_STRING=69
    CommentString=70
    HINT_SP=71
    HINT=72
    HINT_CLOSE=73
    HINT_STRING=74
    SESSION_SPACE=75
    SESSION_SAVE=76
    SESSION_RELEASE=77
    SESSION_RESTORE=78
    SESSION_SAVEURL=79
    SESSION_SHOW=80
    SESSION_NAME=81
    SESSION_END=82
    SQL_CRLF=83
    SQL_SPACE=84
    SQL_END=85
    SQL_STRING=86
    SQL_SINGLE=87
    SQL_OTHER=88
    SQL_PROCEDURE_CRLF=89
    SQL_SLASH=90
    SQL_PROCEDURE_SLASH=91
    SQLProcedureStatement=92
    ScriptBlock=93
    EchoBlock=94
    ASSERT_SPACE=95
    ASSERT_OPEN=96
    ASSERT_CLOSE=97
    ASSERT_EXPRESSION=98
    LOAD_SPACE=99
    LOAD_EQUAL=100
    LOAD_PLUGIN=101
    LOAD_MAP=102
    LOAD_JDBCDRIVER=103
    LOAD_JDBCFILE=104
    LOAD_JDBCCLASS=105
    LOAD_JDBCNAME=106
    LOAD_JDBCPROP=107
    LOAD_JDBCURL=108
    LOAD_EXPRESSION=109
    LOAD_CRLF=110
    START_SPACE=111
    START_EXPRESSION=112
    START_CRLF=113
    HOST_SPACE=114
    HOST_EXPRESSION=115
    HOST_CRLF=116
    IF_SPACE=117
    IF_OPEN=118
    IF_CLOSE=119
    IF_EXPRESSION=120
    LOOP_SEMICOLON=121
    LOOP_SPACE=122
    LOOP_BEGIN=123
    LOOP_UNTIL=124
    LOOP_OPEN=125
    LOOP_CLOSE=126
    LOOP_BREAK=127
    LOOP_END=128
    LOOP_CONTINUE=129
    LOOP_EXPRESSION=130
    LOOP_CRLF=131
    WHENEVER_SPACE=132
    WHENEVER_EXITCODE=133
    WHENEVER_ERROR=134
    WHENEVER_SEMICOLON=135
    WHENEVER_CONTINUE=136
    WHENEVER_EXIT=137
    WHENEVER_CRLF=138
    SET_SPACE=139
    SET_EXPRESSION=140
    SET_SEMICOLON=141
    SET_AT=142
    SET_CRLF=143
    USE_API=144
    USE_SQL=145
    USE_SPACE=146
    USE_SEMICOLON=147
    USE_CRLF=148
    SSH_CONNECT=149
    SSH_WITH=150
    SSH_USER=151
    SSH_KEYFILE=152
    SSH_PASSWORD=153
    SSH_EXECUTE=154
    SSH_DISCONNECT=155
    SSH_SAVE=156
    SSH_RESTORE=157
    SSH_INT=158
    SFTP=159
    SFTP_CHMOD=160
    SFTP_GETCWD=161
    SFTP_CHDIR=162
    SFTP_CHOWN=163
    SFTP_MKDIR=164
    SFTP_GET=165
    SFTP_PUT=166
    SFTP_REMOVE=167
    SFTP_RENAME=168
    SFTP_LISTDIR=169
    SFTP_TRUNCATE=170
    SSH_SPACE=171
    SSH_SEMICOLON=172
    SSH_CRLF=173
    SSH_EXPRESSION=174
    JOB_SPACE=175
    JOB_SEMICOLON=176
    JOB_EQUAL=177
    JOB_CRLF=178
    JOB_CREATE=179
    JOB_SHOW=180
    JOB_SET=181
    JOB_START=182
    JOB_WAIT=183
    JOB_SHUTDOWN=184
    JOB_ABORT=185
    JOB_TIMER=186
    JOB_REGISTER=187
    JOB_DEREGISTER=188
    JOB_WORKER=189
    JOB_MANGER=190
    JOB_ON=191
    JOB_OFF=192
    JOB_TO=193
    JOB_EXPRESSION=194
    COMPARE_SPACE=195
    COMPARE_SEMICOLON=196
    COMPARE_EQUAL=197
    COMPARE_CRLF=198
    COMPARE_SET=199
    COMPARE_UNSET=200
    COMPARE_MASK=201
    COMPARE_NOMASK=202
    COMPARE_MASKLINE=203
    COMPARE_NOMASKLINE=204
    COMPARE_CASE=205
    COMPARE_NOCASE=206
    COMPARE_IGBLANK=207
    COMPARE_NOIGBLANK=208
    COMPARE_TRIM=209
    COMPARE_NOTRIM=210
    COMPARE_OUTPUT=211
    COMPARE_CONSOLE=212
    COMPARE_DIFFFILE=213
    COMPARE_SKIPLINE=214
    COMPARE_NOSKIPLINE=215
    COMPARE_RESET=216
    COMPARE_ALGORITHM=217
    COMPARE_ENCODING=218
    COMPARE_WORK=219
    COMPARE_REFERENCE=220
    COMPARE_LCS=221
    COMPARE_MYERS=222
    COMPARE_EXPRESSION=223
    DATA_SPACE=224
    DATA_SEMICOLON=225
    DATA_SET=226
    DATA_SEEDFILE=227
    DATA_DIR=228
    DATA_CREATE=229
    DATA_FILE=230
    DATA_FILETYPE=231
    DATA_ROWS=232
    DATA_INT=233
    DATA_COMMA=234
    DATACOLUMN_OPEN=235
    DATA_CONVERT=236
    DATA_FROM=237
    DATA_EXPRESSION=238
    DATACOLUMN_EXPRESSION=239
    DATACOLUMN_SPACE=240
    DATACOLUMN_CLOSE=241

    def __init__(self, input:TokenStream, output:TextIO = sys.stdout):
        super().__init__(input, output)
        self.checkVersion("4.11.1")
        self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)
        self._predicates = None




    class ProgContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def command(self):
            return self.getTypedRuleContext(SQLParser.CommandContext,0)


        def EOF(self):
            return self.getToken(SQLParser.EOF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_prog

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitProg" ):
                return visitor.visitProg(self)
            else:
                return visitor.visitChildren(self)




    def prog(self):

        localctx = SQLParser.ProgContext(self, self._ctx, self.state)
        self.enterRule(localctx, 0, self.RULE_prog)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 108
            self.command()
            self.state = 109
            self.match(SQLParser.EOF)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class CommandContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def baseCommand(self):
            return self.getTypedRuleContext(SQLParser.BaseCommandContext,0)


        def disconnect(self):
            return self.getTypedRuleContext(SQLParser.DisconnectContext,0)


        def session(self):
            return self.getTypedRuleContext(SQLParser.SessionContext,0)


        def connect(self):
            return self.getTypedRuleContext(SQLParser.ConnectContext,0)


        def sql(self):
            return self.getTypedRuleContext(SQLParser.SqlContext,0)


        def EOF(self):
            return self.getToken(SQLParser.EOF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_command

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitCommand" ):
                return visitor.visitCommand(self)
            else:
                return visitor.visitChildren(self)




    def command(self):

        localctx = SQLParser.CommandContext(self, self._ctx, self.state)
        self.enterRule(localctx, 2, self.RULE_command)
        try:
            self.state = 117
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51]:
                self.enterOuterAlt(localctx, 1)
                self.state = 111
                self.baseCommand()
                pass
            elif token in [3]:
                self.enterOuterAlt(localctx, 2)
                self.state = 112
                self.disconnect()
                pass
            elif token in [2]:
                self.enterOuterAlt(localctx, 3)
                self.state = 113
                self.session()
                pass
            elif token in [1]:
                self.enterOuterAlt(localctx, 4)
                self.state = 114
                self.connect()
                pass
            elif token in [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]:
                self.enterOuterAlt(localctx, 5)
                self.state = 115
                self.sql()
                pass
            elif token in [-1]:
                self.enterOuterAlt(localctx, 6)
                self.state = 116
                self.match(SQLParser.EOF)
                pass
            else:
                raise NoViableAltException(self)

        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def connectjdbc(self):
            return self.getTypedRuleContext(SQLParser.ConnectjdbcContext,0)


        def connectlocal(self):
            return self.getTypedRuleContext(SQLParser.ConnectlocalContext,0)


        def getRuleIndex(self):
            return SQLParser.RULE_connect

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnect" ):
                return visitor.visitConnect(self)
            else:
                return visitor.visitChildren(self)




    def connect(self):

        localctx = SQLParser.ConnectContext(self, self._ctx, self.state)
        self.enterRule(localctx, 4, self.RULE_connect)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 121
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,1,self._ctx)
            if la_ == 1:
                self.state = 119
                self.connectjdbc()
                pass

            elif la_ == 2:
                self.state = 120
                self.connectlocal()
                pass


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectlocalContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def CONNECT(self):
            return self.getToken(SQLParser.CONNECT, 0)

        def CONNECT_SLASH(self):
            return self.getToken(SQLParser.CONNECT_SLASH, 0)

        def connectlocalService(self):
            return self.getTypedRuleContext(SQLParser.ConnectlocalServiceContext,0)


        def getRuleIndex(self):
            return SQLParser.RULE_connectlocal

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectlocal" ):
                return visitor.visitConnectlocal(self)
            else:
                return visitor.visitChildren(self)




    def connectlocal(self):

        localctx = SQLParser.ConnectlocalContext(self, self._ctx, self.state)
        self.enterRule(localctx, 6, self.RULE_connectlocal)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 123
            self.match(SQLParser.CONNECT)
            self.state = 124
            self.match(SQLParser.CONNECT_SLASH)
            self.state = 125
            self.connectlocalService()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectjdbcContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def CONNECT(self):
            return self.getToken(SQLParser.CONNECT, 0)

        def connectUserInfo(self):
            return self.getTypedRuleContext(SQLParser.ConnectUserInfoContext,0)


        def connectDriver(self):
            return self.getTypedRuleContext(SQLParser.ConnectDriverContext,0)


        def CONNECT_COLON(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.CONNECT_COLON)
            else:
                return self.getToken(SQLParser.CONNECT_COLON, i)

        def connectDriverSchema(self):
            return self.getTypedRuleContext(SQLParser.ConnectDriverSchemaContext,0)


        def CONNECT_DASH(self):
            return self.getToken(SQLParser.CONNECT_DASH, 0)

        def connectHost(self):
            return self.getTypedRuleContext(SQLParser.ConnectHostContext,0)


        def connectService(self):
            return self.getTypedRuleContext(SQLParser.ConnectServiceContext,0)


        def CONNECT_QUESTION(self):
            return self.getToken(SQLParser.CONNECT_QUESTION, 0)

        def connectParameters(self):
            return self.getTypedRuleContext(SQLParser.ConnectParametersContext,0)


        def CONNECT_SLASH(self):
            return self.getToken(SQLParser.CONNECT_SLASH, 0)

        def CONNECT_AT(self):
            return self.getToken(SQLParser.CONNECT_AT, 0)

        def connectDriverType(self):
            return self.getTypedRuleContext(SQLParser.ConnectDriverTypeContext,0)


        def connectPort(self):
            return self.getTypedRuleContext(SQLParser.ConnectPortContext,0)


        def getRuleIndex(self):
            return SQLParser.RULE_connectjdbc

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectjdbc" ):
                return visitor.visitConnectjdbc(self)
            else:
                return visitor.visitChildren(self)




    def connectjdbc(self):

        localctx = SQLParser.ConnectjdbcContext(self, self._ctx, self.state)
        self.enterRule(localctx, 8, self.RULE_connectjdbc)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 127
            self.match(SQLParser.CONNECT)

            self.state = 128
            self.connectUserInfo()
            self.state = 130
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==56:
                self.state = 129
                self.match(SQLParser.CONNECT_AT)


            self.state = 149
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==65:
                self.state = 132
                self.connectDriver()
                self.state = 133
                self.match(SQLParser.CONNECT_COLON)
                self.state = 134
                self.connectDriverSchema()
                self.state = 135
                self.match(SQLParser.CONNECT_COLON)
                self.state = 139
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==69:
                    self.state = 136
                    self.connectDriverType()
                    self.state = 137
                    self.match(SQLParser.CONNECT_COLON)


                self.state = 141
                self.match(SQLParser.CONNECT_DASH)
                self.state = 142
                self.connectHost()
                self.state = 144
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==68:
                    self.state = 143
                    self.connectPort()


                self.state = 146
                _la = self._input.LA(1)
                if not(_la==57 or _la==58):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 147
                self.connectService()


            self.state = 153
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==59:
                self.state = 151
                self.match(SQLParser.CONNECT_QUESTION)
                self.state = 152
                self.connectParameters()


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectUserInfoContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def connectUser(self):
            return self.getTypedRuleContext(SQLParser.ConnectUserContext,0)


        def CONNECT_SLASH(self):
            return self.getToken(SQLParser.CONNECT_SLASH, 0)

        def connectPassword(self):
            return self.getTypedRuleContext(SQLParser.ConnectPasswordContext,0)


        def getRuleIndex(self):
            return SQLParser.RULE_connectUserInfo

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectUserInfo" ):
                return visitor.visitConnectUserInfo(self)
            else:
                return visitor.visitChildren(self)




    def connectUserInfo(self):

        localctx = SQLParser.ConnectUserInfoContext(self, self._ctx, self.state)
        self.enterRule(localctx, 10, self.RULE_connectUserInfo)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 155
            self.connectUser()
            self.state = 158
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==57:
                self.state = 156
                self.match(SQLParser.CONNECT_SLASH)
                self.state = 157
                self.connectPassword()


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectDriverContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def JDBC(self):
            return self.getToken(SQLParser.JDBC, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_connectDriver

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectDriver" ):
                return visitor.visitConnectDriver(self)
            else:
                return visitor.visitChildren(self)




    def connectDriver(self):

        localctx = SQLParser.ConnectDriverContext(self, self._ctx, self.state)
        self.enterRule(localctx, 12, self.RULE_connectDriver)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 160
            self.match(SQLParser.JDBC)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectDriverSchemaContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def CONNECT_STRING(self):
            return self.getToken(SQLParser.CONNECT_STRING, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_connectDriverSchema

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectDriverSchema" ):
                return visitor.visitConnectDriverSchema(self)
            else:
                return visitor.visitChildren(self)




    def connectDriverSchema(self):

        localctx = SQLParser.ConnectDriverSchemaContext(self, self._ctx, self.state)
        self.enterRule(localctx, 14, self.RULE_connectDriverSchema)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 162
            self.match(SQLParser.CONNECT_STRING)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectDriverTypeContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def CONNECT_STRING(self):
            return self.getToken(SQLParser.CONNECT_STRING, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_connectDriverType

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectDriverType" ):
                return visitor.visitConnectDriverType(self)
            else:
                return visitor.visitChildren(self)




    def connectDriverType(self):

        localctx = SQLParser.ConnectDriverTypeContext(self, self._ctx, self.state)
        self.enterRule(localctx, 16, self.RULE_connectDriverType)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 164
            self.match(SQLParser.CONNECT_STRING)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectHostContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def IPV4(self):
            return self.getToken(SQLParser.IPV4, 0)

        def IPV6(self):
            return self.getToken(SQLParser.IPV6, 0)

        def CONNECT_STRING(self):
            return self.getToken(SQLParser.CONNECT_STRING, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_connectHost

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectHost" ):
                return visitor.visitConnectHost(self)
            else:
                return visitor.visitChildren(self)




    def connectHost(self):

        localctx = SQLParser.ConnectHostContext(self, self._ctx, self.state)
        self.enterRule(localctx, 18, self.RULE_connectHost)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 166
            _la = self._input.LA(1)
            if not((((_la - 66)) & ~0x3f) == 0 and ((1 << (_la - 66)) & 11) != 0):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectUserContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def CONNECT_STRING(self):
            return self.getToken(SQLParser.CONNECT_STRING, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_connectUser

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectUser" ):
                return visitor.visitConnectUser(self)
            else:
                return visitor.visitChildren(self)




    def connectUser(self):

        localctx = SQLParser.ConnectUserContext(self, self._ctx, self.state)
        self.enterRule(localctx, 20, self.RULE_connectUser)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 168
            self.match(SQLParser.CONNECT_STRING)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectPasswordContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def CONNECT_STRING(self):
            return self.getToken(SQLParser.CONNECT_STRING, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_connectPassword

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectPassword" ):
                return visitor.visitConnectPassword(self)
            else:
                return visitor.visitChildren(self)




    def connectPassword(self):

        localctx = SQLParser.ConnectPasswordContext(self, self._ctx, self.state)
        self.enterRule(localctx, 22, self.RULE_connectPassword)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 170
            self.match(SQLParser.CONNECT_STRING)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectPortContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def CONNECT_PORT(self):
            return self.getToken(SQLParser.CONNECT_PORT, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_connectPort

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectPort" ):
                return visitor.visitConnectPort(self)
            else:
                return visitor.visitChildren(self)




    def connectPort(self):

        localctx = SQLParser.ConnectPortContext(self, self._ctx, self.state)
        self.enterRule(localctx, 24, self.RULE_connectPort)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 172
            self.match(SQLParser.CONNECT_PORT)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectServiceContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def CONNECT_STRING(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.CONNECT_STRING)
            else:
                return self.getToken(SQLParser.CONNECT_STRING, i)

        def CONNECT_COLON(self):
            return self.getToken(SQLParser.CONNECT_COLON, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_connectService

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectService" ):
                return visitor.visitConnectService(self)
            else:
                return visitor.visitChildren(self)




    def connectService(self):

        localctx = SQLParser.ConnectServiceContext(self, self._ctx, self.state)
        self.enterRule(localctx, 26, self.RULE_connectService)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 174
            self.match(SQLParser.CONNECT_STRING)
            self.state = 177
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==58:
                self.state = 175
                self.match(SQLParser.CONNECT_COLON)
                self.state = 176
                self.match(SQLParser.CONNECT_STRING)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectlocalServiceContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def CONNECT_STRING(self):
            return self.getToken(SQLParser.CONNECT_STRING, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_connectlocalService

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectlocalService" ):
                return visitor.visitConnectlocalService(self)
            else:
                return visitor.visitChildren(self)




    def connectlocalService(self):

        localctx = SQLParser.ConnectlocalServiceContext(self, self._ctx, self.state)
        self.enterRule(localctx, 28, self.RULE_connectlocalService)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 179
            self.match(SQLParser.CONNECT_STRING)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectParameterNameContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def CONNECT_STRING(self):
            return self.getToken(SQLParser.CONNECT_STRING, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_connectParameterName

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectParameterName" ):
                return visitor.visitConnectParameterName(self)
            else:
                return visitor.visitChildren(self)




    def connectParameterName(self):

        localctx = SQLParser.ConnectParameterNameContext(self, self._ctx, self.state)
        self.enterRule(localctx, 30, self.RULE_connectParameterName)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 181
            self.match(SQLParser.CONNECT_STRING)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectParameterValueContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def CONNECT_STRING(self):
            return self.getToken(SQLParser.CONNECT_STRING, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_connectParameterValue

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectParameterValue" ):
                return visitor.visitConnectParameterValue(self)
            else:
                return visitor.visitChildren(self)




    def connectParameterValue(self):

        localctx = SQLParser.ConnectParameterValueContext(self, self._ctx, self.state)
        self.enterRule(localctx, 32, self.RULE_connectParameterValue)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 183
            self.match(SQLParser.CONNECT_STRING)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectParameterContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def connectParameterName(self):
            return self.getTypedRuleContext(SQLParser.ConnectParameterNameContext,0)


        def CONNECT_EQUAL(self):
            return self.getToken(SQLParser.CONNECT_EQUAL, 0)

        def connectParameterValue(self):
            return self.getTypedRuleContext(SQLParser.ConnectParameterValueContext,0)


        def getRuleIndex(self):
            return SQLParser.RULE_connectParameter

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectParameter" ):
                return visitor.visitConnectParameter(self)
            else:
                return visitor.visitChildren(self)




    def connectParameter(self):

        localctx = SQLParser.ConnectParameterContext(self, self._ctx, self.state)
        self.enterRule(localctx, 34, self.RULE_connectParameter)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 185
            self.connectParameterName()
            self.state = 186
            self.match(SQLParser.CONNECT_EQUAL)
            self.state = 187
            self.connectParameterValue()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ConnectParametersContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def connectParameter(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SQLParser.ConnectParameterContext)
            else:
                return self.getTypedRuleContext(SQLParser.ConnectParameterContext,i)


        def CONNECT_PARA_AND(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.CONNECT_PARA_AND)
            else:
                return self.getToken(SQLParser.CONNECT_PARA_AND, i)

        def getRuleIndex(self):
            return SQLParser.RULE_connectParameters

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitConnectParameters" ):
                return visitor.visitConnectParameters(self)
            else:
                return visitor.visitChildren(self)




    def connectParameters(self):

        localctx = SQLParser.ConnectParametersContext(self, self._ctx, self.state)
        self.enterRule(localctx, 36, self.RULE_connectParameters)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 189
            self.connectParameter()
            self.state = 196
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==64:
                self.state = 192 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 190
                    self.match(SQLParser.CONNECT_PARA_AND)
                    self.state = 191
                    self.connectParameter()
                    self.state = 194 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==64):
                        break



        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class DisconnectContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def DISCONNECT(self):
            return self.getToken(SQLParser.DISCONNECT, 0)

        def expression(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(SQLParser.ExpressionContext)
            else:
                return self.getTypedRuleContext(SQLParser.ExpressionContext,i)


        def INT(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.INT)
            else:
                return self.getToken(SQLParser.INT, i)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_disconnect

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitDisconnect" ):
                return visitor.visitDisconnect(self)
            else:
                return visitor.visitChildren(self)




    def disconnect(self):

        localctx = SQLParser.DisconnectContext(self, self._ctx, self.state)
        self.enterRule(localctx, 38, self.RULE_disconnect)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 198
            self.match(SQLParser.DISCONNECT)
            self.state = 203
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while ((_la) & ~0x3f) == 0 and ((1 << _la) & 22518000281190400) != 0:
                self.state = 201
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 54]:
                    self.state = 199
                    self.expression()
                    pass
                elif token in [52]:
                    self.state = 200
                    self.match(SQLParser.INT)
                    pass
                else:
                    raise NoViableAltException(self)

                self.state = 205
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 207
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 206
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SessionContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SESSION(self):
            return self.getToken(SQLParser.SESSION, 0)

        def SESSION_SAVE(self):
            return self.getToken(SQLParser.SESSION_SAVE, 0)

        def SESSION_RELEASE(self):
            return self.getToken(SQLParser.SESSION_RELEASE, 0)

        def SESSION_RESTORE(self):
            return self.getToken(SQLParser.SESSION_RESTORE, 0)

        def SESSION_SAVEURL(self):
            return self.getToken(SQLParser.SESSION_SAVEURL, 0)

        def SESSION_SHOW(self):
            return self.getToken(SQLParser.SESSION_SHOW, 0)

        def SESSION_NAME(self):
            return self.getToken(SQLParser.SESSION_NAME, 0)

        def SESSION_END(self):
            return self.getToken(SQLParser.SESSION_END, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_session

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSession" ):
                return visitor.visitSession(self)
            else:
                return visitor.visitChildren(self)




    def session(self):

        localctx = SQLParser.SessionContext(self, self._ctx, self.state)
        self.enterRule(localctx, 40, self.RULE_session)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 209
            self.match(SQLParser.SESSION)
            self.state = 210
            _la = self._input.LA(1)
            if not((((_la - 76)) & ~0x3f) == 0 and ((1 << (_la - 76)) & 31) != 0):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 212
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==81:
                self.state = 211
                self.match(SQLParser.SESSION_NAME)


            self.state = 215
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==82:
                self.state = 214
                self.match(SQLParser.SESSION_END)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ExpressionContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def String(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.String)
            else:
                return self.getToken(SQLParser.String, i)

        def DOT(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.DOT)
            else:
                return self.getToken(SQLParser.DOT, i)

        def COLON(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COLON)
            else:
                return self.getToken(SQLParser.COLON, i)

        def SLASH(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.SLASH)
            else:
                return self.getToken(SQLParser.SLASH, i)

        def BRACKET_OPEN(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.BRACKET_OPEN)
            else:
                return self.getToken(SQLParser.BRACKET_OPEN, i)

        def BRACKET_CLOSE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.BRACKET_CLOSE)
            else:
                return self.getToken(SQLParser.BRACKET_CLOSE, i)

        def ESCAPE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.ESCAPE)
            else:
                return self.getToken(SQLParser.ESCAPE, i)

        def SQUARE_OPEN(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.SQUARE_OPEN)
            else:
                return self.getToken(SQLParser.SQUARE_OPEN, i)

        def SQUARE_CLOSE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.SQUARE_CLOSE)
            else:
                return self.getToken(SQLParser.SQUARE_CLOSE, i)

        def DOUBLE_QUOTE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.DOUBLE_QUOTE)
            else:
                return self.getToken(SQLParser.DOUBLE_QUOTE, i)

        def SINGLE_QUOTE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.SINGLE_QUOTE)
            else:
                return self.getToken(SQLParser.SINGLE_QUOTE, i)

        def getRuleIndex(self):
            return SQLParser.RULE_expression

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitExpression" ):
                return visitor.visitExpression(self)
            else:
                return visitor.visitChildren(self)




    def expression(self):

        localctx = SQLParser.ExpressionContext(self, self._ctx, self.state)
        self.enterRule(localctx, 42, self.RULE_expression)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 218 
            self._errHandler.sync(self)
            _alt = 1
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt == 1:
                    self.state = 217
                    _la = self._input.LA(1)
                    if not(((_la) & ~0x3f) == 0 and ((1 << _la) & 18014400653819904) != 0):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()

                else:
                    raise NoViableAltException(self)
                self.state = 220 
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,16,self._ctx)

        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SqlContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def sqlCreate(self):
            return self.getTypedRuleContext(SQLParser.SqlCreateContext,0)


        def sqlReplace(self):
            return self.getTypedRuleContext(SQLParser.SqlReplaceContext,0)


        def sqlInsert(self):
            return self.getTypedRuleContext(SQLParser.SqlInsertContext,0)


        def sqlUpdate(self):
            return self.getTypedRuleContext(SQLParser.SqlUpdateContext,0)


        def sqlDelete(self):
            return self.getTypedRuleContext(SQLParser.SqlDeleteContext,0)


        def sqlSelect(self):
            return self.getTypedRuleContext(SQLParser.SqlSelectContext,0)


        def sqlDeclare(self):
            return self.getTypedRuleContext(SQLParser.SqlDeclareContext,0)


        def sqlDrop(self):
            return self.getTypedRuleContext(SQLParser.SqlDropContext,0)


        def sqlCommitRollback(self):
            return self.getTypedRuleContext(SQLParser.SqlCommitRollbackContext,0)


        def sqlCreateProcedure(self):
            return self.getTypedRuleContext(SQLParser.SqlCreateProcedureContext,0)


        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sql

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSql" ):
                return visitor.visitSql(self)
            else:
                return visitor.visitChildren(self)




    def sql(self):

        localctx = SQLParser.SqlContext(self, self._ctx, self.state)
        self.enterRule(localctx, 44, self.RULE_sql)
        try:
            self.state = 233
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [5]:
                self.enterOuterAlt(localctx, 1)
                self.state = 222
                self.sqlCreate()
                pass
            elif token in [10]:
                self.enterOuterAlt(localctx, 2)
                self.state = 223
                self.sqlReplace()
                pass
            elif token in [6]:
                self.enterOuterAlt(localctx, 3)
                self.state = 224
                self.sqlInsert()
                pass
            elif token in [7]:
                self.enterOuterAlt(localctx, 4)
                self.state = 225
                self.sqlUpdate()
                pass
            elif token in [9]:
                self.enterOuterAlt(localctx, 5)
                self.state = 226
                self.sqlDelete()
                pass
            elif token in [8]:
                self.enterOuterAlt(localctx, 6)
                self.state = 227
                self.sqlSelect()
                pass
            elif token in [11, 12]:
                self.enterOuterAlt(localctx, 7)
                self.state = 228
                self.sqlDeclare()
                pass
            elif token in [13]:
                self.enterOuterAlt(localctx, 8)
                self.state = 229
                self.sqlDrop()
                pass
            elif token in [14, 15]:
                self.enterOuterAlt(localctx, 9)
                self.state = 230
                self.sqlCommitRollback()
                pass
            elif token in [16]:
                self.enterOuterAlt(localctx, 10)
                self.state = 231
                self.sqlCreateProcedure()
                pass
            elif token in [17]:
                self.enterOuterAlt(localctx, 11)
                self.state = 232
                self.match(SQLParser.CRLF)
                pass
            else:
                raise NoViableAltException(self)

        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SqlCreateContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SQL_CREATE(self):
            return self.getToken(SQLParser.SQL_CREATE, 0)

        def SQL_END(self):
            return self.getToken(SQLParser.SQL_END, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sqlCreate

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSqlCreate" ):
                return visitor.visitSqlCreate(self)
            else:
                return visitor.visitChildren(self)




    def sqlCreate(self):

        localctx = SQLParser.SqlCreateContext(self, self._ctx, self.state)
        self.enterRule(localctx, 46, self.RULE_sqlCreate)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 235
            self.match(SQLParser.SQL_CREATE)
            self.state = 236
            self.match(SQLParser.SQL_END)
            self.state = 238
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 237
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SqlReplaceContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SQL_REPLACE(self):
            return self.getToken(SQLParser.SQL_REPLACE, 0)

        def SQL_END(self):
            return self.getToken(SQLParser.SQL_END, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sqlReplace

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSqlReplace" ):
                return visitor.visitSqlReplace(self)
            else:
                return visitor.visitChildren(self)




    def sqlReplace(self):

        localctx = SQLParser.SqlReplaceContext(self, self._ctx, self.state)
        self.enterRule(localctx, 48, self.RULE_sqlReplace)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 240
            self.match(SQLParser.SQL_REPLACE)
            self.state = 241
            self.match(SQLParser.SQL_END)
            self.state = 243
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 242
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SqlInsertContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SQL_INSERT(self):
            return self.getToken(SQLParser.SQL_INSERT, 0)

        def SQL_END(self):
            return self.getToken(SQLParser.SQL_END, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sqlInsert

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSqlInsert" ):
                return visitor.visitSqlInsert(self)
            else:
                return visitor.visitChildren(self)




    def sqlInsert(self):

        localctx = SQLParser.SqlInsertContext(self, self._ctx, self.state)
        self.enterRule(localctx, 50, self.RULE_sqlInsert)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 245
            self.match(SQLParser.SQL_INSERT)
            self.state = 246
            self.match(SQLParser.SQL_END)
            self.state = 248
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 247
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SqlUpdateContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SQL_UPDATE(self):
            return self.getToken(SQLParser.SQL_UPDATE, 0)

        def SQL_END(self):
            return self.getToken(SQLParser.SQL_END, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sqlUpdate

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSqlUpdate" ):
                return visitor.visitSqlUpdate(self)
            else:
                return visitor.visitChildren(self)




    def sqlUpdate(self):

        localctx = SQLParser.SqlUpdateContext(self, self._ctx, self.state)
        self.enterRule(localctx, 52, self.RULE_sqlUpdate)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 250
            self.match(SQLParser.SQL_UPDATE)
            self.state = 251
            self.match(SQLParser.SQL_END)
            self.state = 253
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 252
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SqlDeleteContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SQL_DELETE(self):
            return self.getToken(SQLParser.SQL_DELETE, 0)

        def SQL_END(self):
            return self.getToken(SQLParser.SQL_END, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sqlDelete

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSqlDelete" ):
                return visitor.visitSqlDelete(self)
            else:
                return visitor.visitChildren(self)




    def sqlDelete(self):

        localctx = SQLParser.SqlDeleteContext(self, self._ctx, self.state)
        self.enterRule(localctx, 54, self.RULE_sqlDelete)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 255
            self.match(SQLParser.SQL_DELETE)
            self.state = 256
            self.match(SQLParser.SQL_END)
            self.state = 258
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 257
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SqlSelectContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SQL_SELECT(self):
            return self.getToken(SQLParser.SQL_SELECT, 0)

        def SQL_END(self):
            return self.getToken(SQLParser.SQL_END, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sqlSelect

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSqlSelect" ):
                return visitor.visitSqlSelect(self)
            else:
                return visitor.visitChildren(self)




    def sqlSelect(self):

        localctx = SQLParser.SqlSelectContext(self, self._ctx, self.state)
        self.enterRule(localctx, 56, self.RULE_sqlSelect)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 260
            self.match(SQLParser.SQL_SELECT)
            self.state = 261
            self.match(SQLParser.SQL_END)
            self.state = 263
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 262
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SqlDropContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SQL_DROP(self):
            return self.getToken(SQLParser.SQL_DROP, 0)

        def SQL_END(self):
            return self.getToken(SQLParser.SQL_END, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sqlDrop

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSqlDrop" ):
                return visitor.visitSqlDrop(self)
            else:
                return visitor.visitChildren(self)




    def sqlDrop(self):

        localctx = SQLParser.SqlDropContext(self, self._ctx, self.state)
        self.enterRule(localctx, 58, self.RULE_sqlDrop)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 265
            self.match(SQLParser.SQL_DROP)
            self.state = 266
            self.match(SQLParser.SQL_END)
            self.state = 268
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 267
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SqlCommitRollbackContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SQL_COMMIT(self):
            return self.getToken(SQLParser.SQL_COMMIT, 0)

        def SQL_ROLLBACK(self):
            return self.getToken(SQLParser.SQL_ROLLBACK, 0)

        def SQL_END(self):
            return self.getToken(SQLParser.SQL_END, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sqlCommitRollback

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSqlCommitRollback" ):
                return visitor.visitSqlCommitRollback(self)
            else:
                return visitor.visitChildren(self)




    def sqlCommitRollback(self):

        localctx = SQLParser.SqlCommitRollbackContext(self, self._ctx, self.state)
        self.enterRule(localctx, 60, self.RULE_sqlCommitRollback)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 270
            _la = self._input.LA(1)
            if not(_la==14 or _la==15):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 272
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==85:
                self.state = 271
                self.match(SQLParser.SQL_END)


            self.state = 275
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 274
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SqlDeclareContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SQL_SLASH(self):
            return self.getToken(SQLParser.SQL_SLASH, 0)

        def SQL_DECLARE(self):
            return self.getToken(SQLParser.SQL_DECLARE, 0)

        def SQL_BEGIN(self):
            return self.getToken(SQLParser.SQL_BEGIN, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sqlDeclare

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSqlDeclare" ):
                return visitor.visitSqlDeclare(self)
            else:
                return visitor.visitChildren(self)




    def sqlDeclare(self):

        localctx = SQLParser.SqlDeclareContext(self, self._ctx, self.state)
        self.enterRule(localctx, 62, self.RULE_sqlDeclare)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 277
            _la = self._input.LA(1)
            if not(_la==11 or _la==12):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 278
            self.match(SQLParser.SQL_SLASH)
            self.state = 280
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 279
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SqlCreateProcedureContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SQL_CREATE_PROCEDURE(self):
            return self.getToken(SQLParser.SQL_CREATE_PROCEDURE, 0)

        def SQL_SLASH(self):
            return self.getToken(SQLParser.SQL_SLASH, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sqlCreateProcedure

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSqlCreateProcedure" ):
                return visitor.visitSqlCreateProcedure(self)
            else:
                return visitor.visitChildren(self)




    def sqlCreateProcedure(self):

        localctx = SQLParser.SqlCreateProcedureContext(self, self._ctx, self.state)
        self.enterRule(localctx, 64, self.RULE_sqlCreateProcedure)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 282
            self.match(SQLParser.SQL_CREATE_PROCEDURE)
            self.state = 283
            self.match(SQLParser.SQL_SLASH)
            self.state = 285
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 284
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class BaseCommandContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def assert_(self):
            return self.getTypedRuleContext(SQLParser.AssertContext,0)


        def load(self):
            return self.getTypedRuleContext(SQLParser.LoadContext,0)


        def host(self):
            return self.getTypedRuleContext(SQLParser.HostContext,0)


        def start(self):
            return self.getTypedRuleContext(SQLParser.StartContext,0)


        def loop(self):
            return self.getTypedRuleContext(SQLParser.LoopContext,0)


        def if_(self):
            return self.getTypedRuleContext(SQLParser.IfContext,0)


        def endif(self):
            return self.getTypedRuleContext(SQLParser.EndifContext,0)


        def whenever(self):
            return self.getTypedRuleContext(SQLParser.WheneverContext,0)


        def set_(self):
            return self.getTypedRuleContext(SQLParser.SetContext,0)


        def use(self):
            return self.getTypedRuleContext(SQLParser.UseContext,0)


        def exit(self):
            return self.getTypedRuleContext(SQLParser.ExitContext,0)


        def quit(self):
            return self.getTypedRuleContext(SQLParser.QuitContext,0)


        def sleep(self):
            return self.getTypedRuleContext(SQLParser.SleepContext,0)


        def spool(self):
            return self.getTypedRuleContext(SQLParser.SpoolContext,0)


        def script(self):
            return self.getTypedRuleContext(SQLParser.ScriptContext,0)


        def echo(self):
            return self.getTypedRuleContext(SQLParser.EchoContext,0)


        def ssh(self):
            return self.getTypedRuleContext(SQLParser.SshContext,0)


        def job(self):
            return self.getTypedRuleContext(SQLParser.JobContext,0)


        def compare(self):
            return self.getTypedRuleContext(SQLParser.CompareContext,0)


        def data(self):
            return self.getTypedRuleContext(SQLParser.DataContext,0)


        def getRuleIndex(self):
            return SQLParser.RULE_baseCommand

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitBaseCommand" ):
                return visitor.visitBaseCommand(self)
            else:
                return visitor.visitChildren(self)




    def baseCommand(self):

        localctx = SQLParser.BaseCommandContext(self, self._ctx, self.state)
        self.enterRule(localctx, 66, self.RULE_baseCommand)
        try:
            self.state = 307
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [39]:
                self.enterOuterAlt(localctx, 1)
                self.state = 287
                self.assert_()
                pass
            elif token in [41]:
                self.enterOuterAlt(localctx, 2)
                self.state = 288
                self.load()
                pass
            elif token in [42]:
                self.enterOuterAlt(localctx, 3)
                self.state = 289
                self.host()
                pass
            elif token in [40]:
                self.enterOuterAlt(localctx, 4)
                self.state = 290
                self.start()
                pass
            elif token in [46]:
                self.enterOuterAlt(localctx, 5)
                self.state = 291
                self.loop()
                pass
            elif token in [43]:
                self.enterOuterAlt(localctx, 6)
                self.state = 292
                self.if_()
                pass
            elif token in [44]:
                self.enterOuterAlt(localctx, 7)
                self.state = 293
                self.endif()
                pass
            elif token in [47]:
                self.enterOuterAlt(localctx, 8)
                self.state = 294
                self.whenever()
                pass
            elif token in [45]:
                self.enterOuterAlt(localctx, 9)
                self.state = 295
                self.set_()
                pass
            elif token in [36]:
                self.enterOuterAlt(localctx, 10)
                self.state = 296
                self.use()
                pass
            elif token in [32]:
                self.enterOuterAlt(localctx, 11)
                self.state = 297
                self.exit()
                pass
            elif token in [33]:
                self.enterOuterAlt(localctx, 12)
                self.state = 298
                self.quit()
                pass
            elif token in [35]:
                self.enterOuterAlt(localctx, 13)
                self.state = 299
                self.sleep()
                pass
            elif token in [34]:
                self.enterOuterAlt(localctx, 14)
                self.state = 300
                self.spool()
                pass
            elif token in [38]:
                self.enterOuterAlt(localctx, 15)
                self.state = 301
                self.script()
                pass
            elif token in [37]:
                self.enterOuterAlt(localctx, 16)
                self.state = 302
                self.echo()
                pass
            elif token in [48]:
                self.enterOuterAlt(localctx, 17)
                self.state = 303
                self.ssh()
                pass
            elif token in [49]:
                self.enterOuterAlt(localctx, 18)
                self.state = 304
                self.job()
                pass
            elif token in [50]:
                self.enterOuterAlt(localctx, 19)
                self.state = 305
                self.compare()
                pass
            elif token in [51]:
                self.enterOuterAlt(localctx, 20)
                self.state = 306
                self.data()
                pass
            else:
                raise NoViableAltException(self)

        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ExitContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def EXIT(self):
            return self.getToken(SQLParser.EXIT, 0)

        def INT(self):
            return self.getToken(SQLParser.INT, 0)

        def SEMICOLON(self):
            return self.getToken(SQLParser.SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_exit

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitExit" ):
                return visitor.visitExit(self)
            else:
                return visitor.visitChildren(self)




    def exit(self):

        localctx = SQLParser.ExitContext(self, self._ctx, self.state)
        self.enterRule(localctx, 68, self.RULE_exit)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 309
            self.match(SQLParser.EXIT)
            self.state = 311
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==52:
                self.state = 310
                self.match(SQLParser.INT)


            self.state = 314
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==19:
                self.state = 313
                self.match(SQLParser.SEMICOLON)


            self.state = 317
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 316
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class QuitContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def QUIT(self):
            return self.getToken(SQLParser.QUIT, 0)

        def INT(self):
            return self.getToken(SQLParser.INT, 0)

        def SEMICOLON(self):
            return self.getToken(SQLParser.SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_quit

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitQuit" ):
                return visitor.visitQuit(self)
            else:
                return visitor.visitChildren(self)




    def quit(self):

        localctx = SQLParser.QuitContext(self, self._ctx, self.state)
        self.enterRule(localctx, 70, self.RULE_quit)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 319
            self.match(SQLParser.QUIT)
            self.state = 321
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==52:
                self.state = 320
                self.match(SQLParser.INT)


            self.state = 324
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==19:
                self.state = 323
                self.match(SQLParser.SEMICOLON)


            self.state = 327
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 326
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class UseContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def USE(self):
            return self.getToken(SQLParser.USE, 0)

        def USE_API(self):
            return self.getToken(SQLParser.USE_API, 0)

        def USE_SQL(self):
            return self.getToken(SQLParser.USE_SQL, 0)

        def USE_SEMICOLON(self):
            return self.getToken(SQLParser.USE_SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_use

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitUse" ):
                return visitor.visitUse(self)
            else:
                return visitor.visitChildren(self)




    def use(self):

        localctx = SQLParser.UseContext(self, self._ctx, self.state)
        self.enterRule(localctx, 72, self.RULE_use)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 329
            self.match(SQLParser.USE)
            self.state = 330
            _la = self._input.LA(1)
            if not(_la==144 or _la==145):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 332
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==147:
                self.state = 331
                self.match(SQLParser.USE_SEMICOLON)


            self.state = 335
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 334
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SleepContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SLEEP(self):
            return self.getToken(SQLParser.SLEEP, 0)

        def INT(self):
            return self.getToken(SQLParser.INT, 0)

        def SEMICOLON(self):
            return self.getToken(SQLParser.SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_sleep

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSleep" ):
                return visitor.visitSleep(self)
            else:
                return visitor.visitChildren(self)




    def sleep(self):

        localctx = SQLParser.SleepContext(self, self._ctx, self.state)
        self.enterRule(localctx, 74, self.RULE_sleep)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 337
            self.match(SQLParser.SLEEP)
            self.state = 338
            self.match(SQLParser.INT)
            self.state = 340
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==19:
                self.state = 339
                self.match(SQLParser.SEMICOLON)


            self.state = 343
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 342
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class StartContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def START(self):
            return self.getToken(SQLParser.START, 0)

        def START_EXPRESSION(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.START_EXPRESSION)
            else:
                return self.getToken(SQLParser.START_EXPRESSION, i)

        def SEMICOLON(self):
            return self.getToken(SQLParser.SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_start

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitStart" ):
                return visitor.visitStart(self)
            else:
                return visitor.visitChildren(self)




    def start(self):

        localctx = SQLParser.StartContext(self, self._ctx, self.state)
        self.enterRule(localctx, 76, self.RULE_start)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 345
            self.match(SQLParser.START)
            self.state = 347 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 346
                self.match(SQLParser.START_EXPRESSION)
                self.state = 349 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==112):
                    break

            self.state = 352
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==19:
                self.state = 351
                self.match(SQLParser.SEMICOLON)


            self.state = 355
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 354
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class LoadContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def LOAD(self):
            return self.getToken(SQLParser.LOAD, 0)

        def SEMICOLON(self):
            return self.getToken(SQLParser.SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def LOAD_PLUGIN(self):
            return self.getToken(SQLParser.LOAD_PLUGIN, 0)

        def LOAD_EXPRESSION(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.LOAD_EXPRESSION)
            else:
                return self.getToken(SQLParser.LOAD_EXPRESSION, i)

        def LOAD_MAP(self):
            return self.getToken(SQLParser.LOAD_MAP, 0)

        def LOAD_JDBCDRIVER(self):
            return self.getToken(SQLParser.LOAD_JDBCDRIVER, 0)

        def LOAD_JDBCCLASS(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.LOAD_JDBCCLASS)
            else:
                return self.getToken(SQLParser.LOAD_JDBCCLASS, i)

        def LOAD_EQUAL(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.LOAD_EQUAL)
            else:
                return self.getToken(SQLParser.LOAD_EQUAL, i)

        def LOAD_JDBCFILE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.LOAD_JDBCFILE)
            else:
                return self.getToken(SQLParser.LOAD_JDBCFILE, i)

        def LOAD_JDBCNAME(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.LOAD_JDBCNAME)
            else:
                return self.getToken(SQLParser.LOAD_JDBCNAME, i)

        def LOAD_JDBCPROP(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.LOAD_JDBCPROP)
            else:
                return self.getToken(SQLParser.LOAD_JDBCPROP, i)

        def LOAD_JDBCURL(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.LOAD_JDBCURL)
            else:
                return self.getToken(SQLParser.LOAD_JDBCURL, i)

        def getRuleIndex(self):
            return SQLParser.RULE_load

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitLoad" ):
                return visitor.visitLoad(self)
            else:
                return visitor.visitChildren(self)




    def load(self):

        localctx = SQLParser.LoadContext(self, self._ctx, self.state)
        self.enterRule(localctx, 78, self.RULE_load)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 357
            self.match(SQLParser.LOAD)
            self.state = 383
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [101]:
                self.state = 358
                self.match(SQLParser.LOAD_PLUGIN)
                self.state = 359
                self.match(SQLParser.LOAD_EXPRESSION)
                pass
            elif token in [102]:
                self.state = 360
                self.match(SQLParser.LOAD_MAP)
                self.state = 361
                self.match(SQLParser.LOAD_EXPRESSION)
                pass
            elif token in [103]:
                self.state = 362
                self.match(SQLParser.LOAD_JDBCDRIVER)
                self.state = 380
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 104)) & ~0x3f) == 0 and ((1 << (_la - 104)) & 31) != 0:
                    self.state = 378
                    self._errHandler.sync(self)
                    token = self._input.LA(1)
                    if token in [105]:
                        self.state = 363
                        self.match(SQLParser.LOAD_JDBCCLASS)
                        self.state = 364
                        self.match(SQLParser.LOAD_EQUAL)
                        self.state = 365
                        self.match(SQLParser.LOAD_EXPRESSION)
                        pass
                    elif token in [104]:
                        self.state = 366
                        self.match(SQLParser.LOAD_JDBCFILE)
                        self.state = 367
                        self.match(SQLParser.LOAD_EQUAL)
                        self.state = 368
                        self.match(SQLParser.LOAD_EXPRESSION)
                        pass
                    elif token in [106]:
                        self.state = 369
                        self.match(SQLParser.LOAD_JDBCNAME)
                        self.state = 370
                        self.match(SQLParser.LOAD_EQUAL)
                        self.state = 371
                        self.match(SQLParser.LOAD_EXPRESSION)
                        pass
                    elif token in [107]:
                        self.state = 372
                        self.match(SQLParser.LOAD_JDBCPROP)
                        self.state = 373
                        self.match(SQLParser.LOAD_EQUAL)
                        self.state = 374
                        self.match(SQLParser.LOAD_EXPRESSION)
                        pass
                    elif token in [108]:
                        self.state = 375
                        self.match(SQLParser.LOAD_JDBCURL)
                        self.state = 376
                        self.match(SQLParser.LOAD_EQUAL)
                        self.state = 377
                        self.match(SQLParser.LOAD_EXPRESSION)
                        pass
                    else:
                        raise NoViableAltException(self)

                    self.state = 382
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass
            else:
                raise NoViableAltException(self)

            self.state = 386
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==19:
                self.state = 385
                self.match(SQLParser.SEMICOLON)


            self.state = 389
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 388
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class AssertContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def ASSERT(self):
            return self.getToken(SQLParser.ASSERT, 0)

        def ASSERT_EXPRESSION(self):
            return self.getToken(SQLParser.ASSERT_EXPRESSION, 0)

        def SEMICOLON(self):
            return self.getToken(SQLParser.SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_assert

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitAssert" ):
                return visitor.visitAssert(self)
            else:
                return visitor.visitChildren(self)




    def assert_(self):

        localctx = SQLParser.AssertContext(self, self._ctx, self.state)
        self.enterRule(localctx, 80, self.RULE_assert)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 391
            self.match(SQLParser.ASSERT)
            self.state = 392
            self.match(SQLParser.ASSERT_EXPRESSION)
            self.state = 394
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==19:
                self.state = 393
                self.match(SQLParser.SEMICOLON)


            self.state = 397
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 396
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class HostContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def HOST(self):
            return self.getToken(SQLParser.HOST, 0)

        def HOST_EXPRESSION(self):
            return self.getToken(SQLParser.HOST_EXPRESSION, 0)

        def SEMICOLON(self):
            return self.getToken(SQLParser.SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_host

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitHost" ):
                return visitor.visitHost(self)
            else:
                return visitor.visitChildren(self)




    def host(self):

        localctx = SQLParser.HostContext(self, self._ctx, self.state)
        self.enterRule(localctx, 82, self.RULE_host)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 399
            self.match(SQLParser.HOST)
            self.state = 400
            self.match(SQLParser.HOST_EXPRESSION)
            self.state = 402
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==19:
                self.state = 401
                self.match(SQLParser.SEMICOLON)


            self.state = 405
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 404
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class LoopContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def LOOP(self):
            return self.getToken(SQLParser.LOOP, 0)

        def LOOP_BREAK(self):
            return self.getToken(SQLParser.LOOP_BREAK, 0)

        def LOOP_END(self):
            return self.getToken(SQLParser.LOOP_END, 0)

        def LOOP_CONTINUE(self):
            return self.getToken(SQLParser.LOOP_CONTINUE, 0)

        def LOOP_BEGIN(self):
            return self.getToken(SQLParser.LOOP_BEGIN, 0)

        def LOOP_UNTIL(self):
            return self.getToken(SQLParser.LOOP_UNTIL, 0)

        def LOOP_EXPRESSION(self):
            return self.getToken(SQLParser.LOOP_EXPRESSION, 0)

        def LOOP_SEMICOLON(self):
            return self.getToken(SQLParser.LOOP_SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_loop

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitLoop" ):
                return visitor.visitLoop(self)
            else:
                return visitor.visitChildren(self)




    def loop(self):

        localctx = SQLParser.LoopContext(self, self._ctx, self.state)
        self.enterRule(localctx, 84, self.RULE_loop)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 407
            self.match(SQLParser.LOOP)
            self.state = 414
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [127]:
                self.state = 408
                self.match(SQLParser.LOOP_BREAK)
                pass
            elif token in [128]:
                self.state = 409
                self.match(SQLParser.LOOP_END)
                pass
            elif token in [129]:
                self.state = 410
                self.match(SQLParser.LOOP_CONTINUE)
                pass
            elif token in [123]:
                self.state = 411
                self.match(SQLParser.LOOP_BEGIN)
                self.state = 412
                self.match(SQLParser.LOOP_UNTIL)
                self.state = 413
                self.match(SQLParser.LOOP_EXPRESSION)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 417
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==121:
                self.state = 416
                self.match(SQLParser.LOOP_SEMICOLON)


            self.state = 420
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 419
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class IfContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def IF(self):
            return self.getToken(SQLParser.IF, 0)

        def IF_EXPRESSION(self):
            return self.getToken(SQLParser.IF_EXPRESSION, 0)

        def SEMICOLON(self):
            return self.getToken(SQLParser.SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_if

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitIf" ):
                return visitor.visitIf(self)
            else:
                return visitor.visitChildren(self)




    def if_(self):

        localctx = SQLParser.IfContext(self, self._ctx, self.state)
        self.enterRule(localctx, 86, self.RULE_if)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 422
            self.match(SQLParser.IF)
            self.state = 423
            self.match(SQLParser.IF_EXPRESSION)
            self.state = 425
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==19:
                self.state = 424
                self.match(SQLParser.SEMICOLON)


            self.state = 428
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 427
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class EndifContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def ENDIF(self):
            return self.getToken(SQLParser.ENDIF, 0)

        def SEMICOLON(self):
            return self.getToken(SQLParser.SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_endif

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitEndif" ):
                return visitor.visitEndif(self)
            else:
                return visitor.visitChildren(self)




    def endif(self):

        localctx = SQLParser.EndifContext(self, self._ctx, self.state)
        self.enterRule(localctx, 88, self.RULE_endif)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 430
            self.match(SQLParser.ENDIF)
            self.state = 432
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==19:
                self.state = 431
                self.match(SQLParser.SEMICOLON)


            self.state = 435
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 434
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class WheneverContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def WHENEVER(self):
            return self.getToken(SQLParser.WHENEVER, 0)

        def WHENEVER_ERROR(self):
            return self.getToken(SQLParser.WHENEVER_ERROR, 0)

        def WHENEVER_CONTINUE(self):
            return self.getToken(SQLParser.WHENEVER_CONTINUE, 0)

        def WHENEVER_SEMICOLON(self):
            return self.getToken(SQLParser.WHENEVER_SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def WHENEVER_EXIT(self):
            return self.getToken(SQLParser.WHENEVER_EXIT, 0)

        def WHENEVER_EXITCODE(self):
            return self.getToken(SQLParser.WHENEVER_EXITCODE, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_whenever

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitWhenever" ):
                return visitor.visitWhenever(self)
            else:
                return visitor.visitChildren(self)




    def whenever(self):

        localctx = SQLParser.WheneverContext(self, self._ctx, self.state)
        self.enterRule(localctx, 90, self.RULE_whenever)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 437
            self.match(SQLParser.WHENEVER)
            self.state = 438
            self.match(SQLParser.WHENEVER_ERROR)
            self.state = 442
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [136]:
                self.state = 439
                self.match(SQLParser.WHENEVER_CONTINUE)
                pass
            elif token in [137]:
                self.state = 440
                self.match(SQLParser.WHENEVER_EXIT)
                self.state = 441
                self.match(SQLParser.WHENEVER_EXITCODE)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 445
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==135:
                self.state = 444
                self.match(SQLParser.WHENEVER_SEMICOLON)


            self.state = 448
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 447
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SpoolContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SPOOL(self):
            return self.getToken(SQLParser.SPOOL, 0)

        def String(self):
            return self.getToken(SQLParser.String, 0)

        def SEMICOLON(self):
            return self.getToken(SQLParser.SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_spool

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSpool" ):
                return visitor.visitSpool(self)
            else:
                return visitor.visitChildren(self)




    def spool(self):

        localctx = SQLParser.SpoolContext(self, self._ctx, self.state)
        self.enterRule(localctx, 92, self.RULE_spool)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 450
            self.match(SQLParser.SPOOL)
            self.state = 451
            self.match(SQLParser.String)
            self.state = 453
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==19:
                self.state = 452
                self.match(SQLParser.SEMICOLON)


            self.state = 456
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 455
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class EchoContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def ECHO_OPEN(self):
            return self.getToken(SQLParser.ECHO_OPEN, 0)

        def EchoBlock(self):
            return self.getToken(SQLParser.EchoBlock, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def EOF(self):
            return self.getToken(SQLParser.EOF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_echo

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitEcho" ):
                return visitor.visitEcho(self)
            else:
                return visitor.visitChildren(self)




    def echo(self):

        localctx = SQLParser.EchoContext(self, self._ctx, self.state)
        self.enterRule(localctx, 94, self.RULE_echo)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 458
            self.match(SQLParser.ECHO_OPEN)
            self.state = 459
            self.match(SQLParser.EchoBlock)
            self.state = 461
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,64,self._ctx)
            if la_ == 1:
                self.state = 460
                _la = self._input.LA(1)
                if not(_la==-1 or _la==17):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class ScriptContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SCRIPT_OPEN(self):
            return self.getToken(SQLParser.SCRIPT_OPEN, 0)

        def ScriptBlock(self):
            return self.getToken(SQLParser.ScriptBlock, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_script

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitScript" ):
                return visitor.visitScript(self)
            else:
                return visitor.visitChildren(self)




    def script(self):

        localctx = SQLParser.ScriptContext(self, self._ctx, self.state)
        self.enterRule(localctx, 96, self.RULE_script)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 463
            self.match(SQLParser.SCRIPT_OPEN)
            self.state = 464
            self.match(SQLParser.ScriptBlock)
            self.state = 466
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 465
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SetContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SET(self):
            return self.getToken(SQLParser.SET, 0)

        def SET_AT(self):
            return self.getToken(SQLParser.SET_AT, 0)

        def SET_EXPRESSION(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.SET_EXPRESSION)
            else:
                return self.getToken(SQLParser.SET_EXPRESSION, i)

        def SET_SEMICOLON(self):
            return self.getToken(SQLParser.SET_SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_set

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSet" ):
                return visitor.visitSet(self)
            else:
                return visitor.visitChildren(self)




    def set_(self):

        localctx = SQLParser.SetContext(self, self._ctx, self.state)
        self.enterRule(localctx, 98, self.RULE_set)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 468
            self.match(SQLParser.SET)
            self.state = 470
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==142:
                self.state = 469
                self.match(SQLParser.SET_AT)


            self.state = 475
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==140:
                self.state = 472
                self.match(SQLParser.SET_EXPRESSION)
                self.state = 477
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 479
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==141:
                self.state = 478
                self.match(SQLParser.SET_SEMICOLON)


            self.state = 482
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 481
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class SshContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def SSH(self):
            return self.getToken(SQLParser.SSH, 0)

        def SSH_SEMICOLON(self):
            return self.getToken(SQLParser.SSH_SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def SSH_CONNECT(self):
            return self.getToken(SQLParser.SSH_CONNECT, 0)

        def SSH_EXPRESSION(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.SSH_EXPRESSION)
            else:
                return self.getToken(SQLParser.SSH_EXPRESSION, i)

        def SSH_WITH(self):
            return self.getToken(SQLParser.SSH_WITH, 0)

        def SSH_USER(self):
            return self.getToken(SQLParser.SSH_USER, 0)

        def SSH_KEYFILE(self):
            return self.getToken(SQLParser.SSH_KEYFILE, 0)

        def SSH_EXECUTE(self):
            return self.getToken(SQLParser.SSH_EXECUTE, 0)

        def SSH_DISCONNECT(self):
            return self.getToken(SQLParser.SSH_DISCONNECT, 0)

        def SSH_SAVE(self):
            return self.getToken(SQLParser.SSH_SAVE, 0)

        def SSH_RESTORE(self):
            return self.getToken(SQLParser.SSH_RESTORE, 0)

        def SFTP(self):
            return self.getToken(SQLParser.SFTP, 0)

        def SSH_PASSWORD(self):
            return self.getToken(SQLParser.SSH_PASSWORD, 0)

        def SFTP_CHMOD(self):
            return self.getToken(SQLParser.SFTP_CHMOD, 0)

        def SSH_INT(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.SSH_INT)
            else:
                return self.getToken(SQLParser.SSH_INT, i)

        def SFTP_GETCWD(self):
            return self.getToken(SQLParser.SFTP_GETCWD, 0)

        def SFTP_CHDIR(self):
            return self.getToken(SQLParser.SFTP_CHDIR, 0)

        def SFTP_CHOWN(self):
            return self.getToken(SQLParser.SFTP_CHOWN, 0)

        def SFTP_MKDIR(self):
            return self.getToken(SQLParser.SFTP_MKDIR, 0)

        def SFTP_GET(self):
            return self.getToken(SQLParser.SFTP_GET, 0)

        def SFTP_PUT(self):
            return self.getToken(SQLParser.SFTP_PUT, 0)

        def SFTP_REMOVE(self):
            return self.getToken(SQLParser.SFTP_REMOVE, 0)

        def SFTP_RENAME(self):
            return self.getToken(SQLParser.SFTP_RENAME, 0)

        def SFTP_LISTDIR(self):
            return self.getToken(SQLParser.SFTP_LISTDIR, 0)

        def SFTP_TRUNCATE(self):
            return self.getToken(SQLParser.SFTP_TRUNCATE, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_ssh

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitSsh" ):
                return visitor.visitSsh(self)
            else:
                return visitor.visitChildren(self)




    def ssh(self):

        localctx = SQLParser.SshContext(self, self._ctx, self.state)
        self.enterRule(localctx, 100, self.RULE_ssh)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 484
            self.match(SQLParser.SSH)
            self.state = 544
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,73,self._ctx)
            if la_ == 1:
                self.state = 485
                self.match(SQLParser.SSH_CONNECT)
                self.state = 486
                self.match(SQLParser.SSH_EXPRESSION)
                self.state = 487
                self.match(SQLParser.SSH_WITH)
                self.state = 488
                self.match(SQLParser.SSH_USER)
                self.state = 489
                self.match(SQLParser.SSH_EXPRESSION)
                self.state = 490
                self.match(SQLParser.SSH_KEYFILE)
                self.state = 491
                self.match(SQLParser.SSH_EXPRESSION)
                pass

            elif la_ == 2:
                self.state = 492
                self.match(SQLParser.SSH_CONNECT)
                self.state = 493
                self.match(SQLParser.SSH_EXPRESSION)
                self.state = 494
                self.match(SQLParser.SSH_WITH)
                self.state = 495
                self.match(SQLParser.SSH_USER)
                self.state = 496
                self.match(SQLParser.SSH_EXPRESSION)
                self.state = 499
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==153:
                    self.state = 497
                    self.match(SQLParser.SSH_PASSWORD)
                    self.state = 498
                    self.match(SQLParser.SSH_EXPRESSION)


                pass

            elif la_ == 3:
                self.state = 501
                self.match(SQLParser.SSH_EXECUTE)
                self.state = 503 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 502
                    self.match(SQLParser.SSH_EXPRESSION)
                    self.state = 505 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==174):
                        break

                pass

            elif la_ == 4:
                self.state = 507
                self.match(SQLParser.SSH_DISCONNECT)
                pass

            elif la_ == 5:
                self.state = 508
                self.match(SQLParser.SSH_SAVE)
                self.state = 509
                self.match(SQLParser.SSH_EXPRESSION)
                pass

            elif la_ == 6:
                self.state = 510
                self.match(SQLParser.SSH_RESTORE)
                self.state = 511
                self.match(SQLParser.SSH_EXPRESSION)
                pass

            elif la_ == 7:
                self.state = 512
                self.match(SQLParser.SFTP)
                self.state = 542
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [160]:
                    self.state = 513
                    self.match(SQLParser.SFTP_CHMOD)
                    self.state = 514
                    self.match(SQLParser.SSH_EXPRESSION)
                    self.state = 515
                    self.match(SQLParser.SSH_INT)
                    pass
                elif token in [161]:
                    self.state = 516
                    self.match(SQLParser.SFTP_GETCWD)
                    pass
                elif token in [162]:
                    self.state = 517
                    self.match(SQLParser.SFTP_CHDIR)
                    self.state = 518
                    self.match(SQLParser.SSH_EXPRESSION)
                    pass
                elif token in [163]:
                    self.state = 519
                    self.match(SQLParser.SFTP_CHOWN)
                    self.state = 520
                    self.match(SQLParser.SSH_EXPRESSION)
                    self.state = 521
                    self.match(SQLParser.SSH_INT)
                    self.state = 522
                    self.match(SQLParser.SSH_INT)
                    pass
                elif token in [164]:
                    self.state = 523
                    self.match(SQLParser.SFTP_MKDIR)
                    self.state = 524
                    self.match(SQLParser.SSH_EXPRESSION)
                    self.state = 525
                    self.match(SQLParser.SSH_INT)
                    pass
                elif token in [165]:
                    self.state = 526
                    self.match(SQLParser.SFTP_GET)
                    self.state = 527
                    self.match(SQLParser.SSH_EXPRESSION)
                    self.state = 528
                    self.match(SQLParser.SSH_EXPRESSION)
                    pass
                elif token in [166]:
                    self.state = 529
                    self.match(SQLParser.SFTP_PUT)
                    self.state = 530
                    self.match(SQLParser.SSH_EXPRESSION)
                    self.state = 531
                    self.match(SQLParser.SSH_EXPRESSION)
                    pass
                elif token in [167]:
                    self.state = 532
                    self.match(SQLParser.SFTP_REMOVE)
                    self.state = 533
                    self.match(SQLParser.SSH_EXPRESSION)
                    pass
                elif token in [168]:
                    self.state = 534
                    self.match(SQLParser.SFTP_RENAME)
                    self.state = 535
                    self.match(SQLParser.SSH_EXPRESSION)
                    self.state = 536
                    self.match(SQLParser.SSH_EXPRESSION)
                    pass
                elif token in [169]:
                    self.state = 537
                    self.match(SQLParser.SFTP_LISTDIR)
                    self.state = 538
                    self.match(SQLParser.SSH_EXPRESSION)
                    pass
                elif token in [170]:
                    self.state = 539
                    self.match(SQLParser.SFTP_TRUNCATE)
                    self.state = 540
                    self.match(SQLParser.SSH_EXPRESSION)
                    self.state = 541
                    self.match(SQLParser.SSH_INT)
                    pass
                else:
                    raise NoViableAltException(self)

                pass


            self.state = 547
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==172:
                self.state = 546
                self.match(SQLParser.SSH_SEMICOLON)


            self.state = 550
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 549
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class JobContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def JOB(self):
            return self.getToken(SQLParser.JOB, 0)

        def JOB_SEMICOLON(self):
            return self.getToken(SQLParser.JOB_SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def JOB_MANGER(self):
            return self.getToken(SQLParser.JOB_MANGER, 0)

        def JOB_WAIT(self):
            return self.getToken(SQLParser.JOB_WAIT, 0)

        def JOB_EXPRESSION(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.JOB_EXPRESSION)
            else:
                return self.getToken(SQLParser.JOB_EXPRESSION, i)

        def JOB_SHOW(self):
            return self.getToken(SQLParser.JOB_SHOW, 0)

        def JOB_ABORT(self):
            return self.getToken(SQLParser.JOB_ABORT, 0)

        def JOB_SHUTDOWN(self):
            return self.getToken(SQLParser.JOB_SHUTDOWN, 0)

        def JOB_TIMER(self):
            return self.getToken(SQLParser.JOB_TIMER, 0)

        def JOB_START(self):
            return self.getToken(SQLParser.JOB_START, 0)

        def JOB_DEREGISTER(self):
            return self.getToken(SQLParser.JOB_DEREGISTER, 0)

        def JOB_WORKER(self):
            return self.getToken(SQLParser.JOB_WORKER, 0)

        def JOB_REGISTER(self):
            return self.getToken(SQLParser.JOB_REGISTER, 0)

        def JOB_TO(self):
            return self.getToken(SQLParser.JOB_TO, 0)

        def JOB_SET(self):
            return self.getToken(SQLParser.JOB_SET, 0)

        def JOB_CREATE(self):
            return self.getToken(SQLParser.JOB_CREATE, 0)

        def JOB_ON(self):
            return self.getToken(SQLParser.JOB_ON, 0)

        def JOB_OFF(self):
            return self.getToken(SQLParser.JOB_OFF, 0)

        def JOB_EQUAL(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.JOB_EQUAL)
            else:
                return self.getToken(SQLParser.JOB_EQUAL, i)

        def getRuleIndex(self):
            return SQLParser.RULE_job

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitJob" ):
                return visitor.visitJob(self)
            else:
                return visitor.visitChildren(self)




    def job(self):

        localctx = SQLParser.JobContext(self, self._ctx, self.state)
        self.enterRule(localctx, 102, self.RULE_job)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 552
            self.match(SQLParser.JOB)
            self.state = 592
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [190]:
                self.state = 553
                self.match(SQLParser.JOB_MANGER)
                self.state = 554
                _la = self._input.LA(1)
                if not(_la==191 or _la==192):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass
            elif token in [183]:
                self.state = 555
                self.match(SQLParser.JOB_WAIT)
                self.state = 556
                self.match(SQLParser.JOB_EXPRESSION)
                pass
            elif token in [180]:
                self.state = 557
                self.match(SQLParser.JOB_SHOW)
                self.state = 558
                self.match(SQLParser.JOB_EXPRESSION)
                pass
            elif token in [185]:
                self.state = 559
                self.match(SQLParser.JOB_ABORT)
                self.state = 560
                self.match(SQLParser.JOB_EXPRESSION)
                pass
            elif token in [184]:
                self.state = 561
                self.match(SQLParser.JOB_SHUTDOWN)
                self.state = 562
                self.match(SQLParser.JOB_EXPRESSION)
                pass
            elif token in [186]:
                self.state = 563
                self.match(SQLParser.JOB_TIMER)
                self.state = 564
                self.match(SQLParser.JOB_EXPRESSION)
                pass
            elif token in [182]:
                self.state = 565
                self.match(SQLParser.JOB_START)
                self.state = 566
                self.match(SQLParser.JOB_EXPRESSION)
                pass
            elif token in [188]:
                self.state = 567
                self.match(SQLParser.JOB_DEREGISTER)
                self.state = 568
                self.match(SQLParser.JOB_WORKER)
                pass
            elif token in [187]:
                self.state = 569
                self.match(SQLParser.JOB_REGISTER)
                self.state = 570
                self.match(SQLParser.JOB_WORKER)
                self.state = 571
                self.match(SQLParser.JOB_TO)
                self.state = 572
                self.match(SQLParser.JOB_EXPRESSION)
                pass
            elif token in [181]:
                self.state = 573
                self.match(SQLParser.JOB_SET)
                self.state = 574
                self.match(SQLParser.JOB_EXPRESSION)
                self.state = 578 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 575
                    self.match(SQLParser.JOB_EXPRESSION)
                    self.state = 576
                    self.match(SQLParser.JOB_EQUAL)
                    self.state = 577
                    self.match(SQLParser.JOB_EXPRESSION)
                    self.state = 580 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==194):
                        break

                pass
            elif token in [179]:
                self.state = 582
                self.match(SQLParser.JOB_CREATE)
                self.state = 583
                self.match(SQLParser.JOB_EXPRESSION)
                self.state = 589
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==194:
                    self.state = 584
                    self.match(SQLParser.JOB_EXPRESSION)
                    self.state = 585
                    self.match(SQLParser.JOB_EQUAL)
                    self.state = 586
                    self.match(SQLParser.JOB_EXPRESSION)
                    self.state = 591
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass
            else:
                raise NoViableAltException(self)

            self.state = 595
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==176:
                self.state = 594
                self.match(SQLParser.JOB_SEMICOLON)


            self.state = 598
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 597
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class CompareContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def COMPARE(self):
            return self.getToken(SQLParser.COMPARE, 0)

        def COMPARE_RESET(self):
            return self.getToken(SQLParser.COMPARE_RESET, 0)

        def COMPARE_SEMICOLON(self):
            return self.getToken(SQLParser.COMPARE_SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def COMPARE_EXPRESSION(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COMPARE_EXPRESSION)
            else:
                return self.getToken(SQLParser.COMPARE_EXPRESSION, i)

        def COMPARE_MASKLINE(self):
            return self.getToken(SQLParser.COMPARE_MASKLINE, 0)

        def COMPARE_EQUAL(self):
            return self.getToken(SQLParser.COMPARE_EQUAL, 0)

        def COMPARE_NOMASKLINE(self):
            return self.getToken(SQLParser.COMPARE_NOMASKLINE, 0)

        def COMPARE_SET(self):
            return self.getToken(SQLParser.COMPARE_SET, 0)

        def COMPARE_OUTPUT(self):
            return self.getToken(SQLParser.COMPARE_OUTPUT, 0)

        def COMPARE_ALGORITHM(self):
            return self.getToken(SQLParser.COMPARE_ALGORITHM, 0)

        def COMPARE_ENCODING(self):
            return self.getToken(SQLParser.COMPARE_ENCODING, 0)

        def COMPARE_SKIPLINE(self):
            return self.getToken(SQLParser.COMPARE_SKIPLINE, 0)

        def COMPARE_NOSKIPLINE(self):
            return self.getToken(SQLParser.COMPARE_NOSKIPLINE, 0)

        def COMPARE_LCS(self):
            return self.getToken(SQLParser.COMPARE_LCS, 0)

        def COMPARE_MYERS(self):
            return self.getToken(SQLParser.COMPARE_MYERS, 0)

        def COMPARE_WORK(self):
            return self.getToken(SQLParser.COMPARE_WORK, 0)

        def COMPARE_REFERENCE(self):
            return self.getToken(SQLParser.COMPARE_REFERENCE, 0)

        def COMPARE_MASK(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COMPARE_MASK)
            else:
                return self.getToken(SQLParser.COMPARE_MASK, i)

        def COMPARE_NOMASK(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COMPARE_NOMASK)
            else:
                return self.getToken(SQLParser.COMPARE_NOMASK, i)

        def COMPARE_CASE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COMPARE_CASE)
            else:
                return self.getToken(SQLParser.COMPARE_CASE, i)

        def COMPARE_NOCASE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COMPARE_NOCASE)
            else:
                return self.getToken(SQLParser.COMPARE_NOCASE, i)

        def COMPARE_IGBLANK(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COMPARE_IGBLANK)
            else:
                return self.getToken(SQLParser.COMPARE_IGBLANK, i)

        def COMPARE_NOIGBLANK(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COMPARE_NOIGBLANK)
            else:
                return self.getToken(SQLParser.COMPARE_NOIGBLANK, i)

        def COMPARE_TRIM(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COMPARE_TRIM)
            else:
                return self.getToken(SQLParser.COMPARE_TRIM, i)

        def COMPARE_NOTRIM(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COMPARE_NOTRIM)
            else:
                return self.getToken(SQLParser.COMPARE_NOTRIM, i)

        def COMPARE_CONSOLE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COMPARE_CONSOLE)
            else:
                return self.getToken(SQLParser.COMPARE_CONSOLE, i)

        def COMPARE_DIFFFILE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.COMPARE_DIFFFILE)
            else:
                return self.getToken(SQLParser.COMPARE_DIFFFILE, i)

        def getRuleIndex(self):
            return SQLParser.RULE_compare

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitCompare" ):
                return visitor.visitCompare(self)
            else:
                return visitor.visitChildren(self)




    def compare(self):

        localctx = SQLParser.CompareContext(self, self._ctx, self.state)
        self.enterRule(localctx, 104, self.RULE_compare)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 600
            self.match(SQLParser.COMPARE)
            self.state = 639
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,84,self._ctx)
            if la_ == 1:
                self.state = 601
                self.match(SQLParser.COMPARE_EXPRESSION)
                self.state = 602
                self.match(SQLParser.COMPARE_EXPRESSION)
                self.state = 606
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 201)) & ~0x3f) == 0 and ((1 << (_la - 201)) & 1011) != 0:
                    self.state = 603
                    _la = self._input.LA(1)
                    if not((((_la - 201)) & ~0x3f) == 0 and ((1 << (_la - 201)) & 1011) != 0):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 608
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 2:
                self.state = 609
                _la = self._input.LA(1)
                if not(_la==214 or _la==215):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 610
                self.match(SQLParser.COMPARE_EXPRESSION)
                pass

            elif la_ == 3:
                self.state = 611
                self.match(SQLParser.COMPARE_MASKLINE)
                self.state = 612
                self.match(SQLParser.COMPARE_EXPRESSION)
                self.state = 613
                self.match(SQLParser.COMPARE_EQUAL)
                self.state = 614
                self.match(SQLParser.COMPARE_EXPRESSION)
                pass

            elif la_ == 4:
                self.state = 615
                self.match(SQLParser.COMPARE_NOMASKLINE)
                self.state = 616
                self.match(SQLParser.COMPARE_EXPRESSION)
                pass

            elif la_ == 5:
                self.state = 617
                self.match(SQLParser.COMPARE_RESET)
                pass

            elif la_ == 6:
                self.state = 618
                self.match(SQLParser.COMPARE_SET)
                self.state = 622
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 201)) & ~0x3f) == 0 and ((1 << (_la - 201)) & 1011) != 0:
                    self.state = 619
                    _la = self._input.LA(1)
                    if not((((_la - 201)) & ~0x3f) == 0 and ((1 << (_la - 201)) & 1011) != 0):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 624
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 7:
                self.state = 625
                self.match(SQLParser.COMPARE_SET)
                self.state = 626
                self.match(SQLParser.COMPARE_OUTPUT)
                self.state = 628 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 627
                    _la = self._input.LA(1)
                    if not(_la==212 or _la==213):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 630 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==212 or _la==213):
                        break

                pass

            elif la_ == 8:
                self.state = 632
                self.match(SQLParser.COMPARE_SET)
                self.state = 633
                self.match(SQLParser.COMPARE_ALGORITHM)
                self.state = 634
                _la = self._input.LA(1)
                if not(_la==221 or _la==222):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass

            elif la_ == 9:
                self.state = 635
                self.match(SQLParser.COMPARE_SET)
                self.state = 636
                _la = self._input.LA(1)
                if not(_la==219 or _la==220):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 637
                self.match(SQLParser.COMPARE_ENCODING)
                self.state = 638
                self.match(SQLParser.COMPARE_EXPRESSION)
                pass


            self.state = 642
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==196:
                self.state = 641
                self.match(SQLParser.COMPARE_SEMICOLON)


            self.state = 645
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 644
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class DataContext(ParserRuleContext):
        __slots__ = 'parser'

        def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):
            super().__init__(parent, invokingState)
            self.parser = parser

        def DATA(self):
            return self.getToken(SQLParser.DATA, 0)

        def DATA_SEMICOLON(self):
            return self.getToken(SQLParser.DATA_SEMICOLON, 0)

        def CRLF(self):
            return self.getToken(SQLParser.CRLF, 0)

        def DATA_SET(self):
            return self.getToken(SQLParser.DATA_SET, 0)

        def DATA_SEEDFILE(self):
            return self.getToken(SQLParser.DATA_SEEDFILE, 0)

        def DATA_DIR(self):
            return self.getToken(SQLParser.DATA_DIR, 0)

        def DATA_EXPRESSION(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.DATA_EXPRESSION)
            else:
                return self.getToken(SQLParser.DATA_EXPRESSION, i)

        def DATA_CREATE(self):
            return self.getToken(SQLParser.DATA_CREATE, 0)

        def DATA_FILETYPE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.DATA_FILETYPE)
            else:
                return self.getToken(SQLParser.DATA_FILETYPE, i)

        def DATA_FILE(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.DATA_FILE)
            else:
                return self.getToken(SQLParser.DATA_FILE, i)

        def DATACOLUMN_OPEN(self):
            return self.getToken(SQLParser.DATACOLUMN_OPEN, 0)

        def DATACOLUMN_CLOSE(self):
            return self.getToken(SQLParser.DATACOLUMN_CLOSE, 0)

        def DATA_CONVERT(self):
            return self.getToken(SQLParser.DATA_CONVERT, 0)

        def DATA_FROM(self):
            return self.getToken(SQLParser.DATA_FROM, 0)

        def DATACOLUMN_EXPRESSION(self, i:int=None):
            if i is None:
                return self.getTokens(SQLParser.DATACOLUMN_EXPRESSION)
            else:
                return self.getToken(SQLParser.DATACOLUMN_EXPRESSION, i)

        def DATA_ROWS(self):
            return self.getToken(SQLParser.DATA_ROWS, 0)

        def DATA_INT(self):
            return self.getToken(SQLParser.DATA_INT, 0)

        def getRuleIndex(self):
            return SQLParser.RULE_data

        def accept(self, visitor:ParseTreeVisitor):
            if hasattr( visitor, "visitData" ):
                return visitor.visitData(self)
            else:
                return visitor.visitChildren(self)




    def data(self):

        localctx = SQLParser.DataContext(self, self._ctx, self.state)
        self.enterRule(localctx, 106, self.RULE_data)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 647
            self.match(SQLParser.DATA)
            self.state = 675
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [226]:
                self.state = 648
                self.match(SQLParser.DATA_SET)
                self.state = 649
                self.match(SQLParser.DATA_SEEDFILE)
                self.state = 650
                self.match(SQLParser.DATA_DIR)
                self.state = 651
                self.match(SQLParser.DATA_EXPRESSION)
                pass
            elif token in [229]:
                self.state = 652
                self.match(SQLParser.DATA_CREATE)
                self.state = 653
                self.match(SQLParser.DATA_FILETYPE)
                self.state = 654
                self.match(SQLParser.DATA_FILE)
                self.state = 655
                self.match(SQLParser.DATA_EXPRESSION)
                self.state = 656
                self.match(SQLParser.DATACOLUMN_OPEN)
                self.state = 658 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 657
                    self.match(SQLParser.DATACOLUMN_EXPRESSION)
                    self.state = 660 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==239):
                        break

                self.state = 662
                self.match(SQLParser.DATACOLUMN_CLOSE)
                self.state = 665
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==232:
                    self.state = 663
                    self.match(SQLParser.DATA_ROWS)
                    self.state = 664
                    self.match(SQLParser.DATA_INT)


                pass
            elif token in [236]:
                self.state = 667
                self.match(SQLParser.DATA_CONVERT)
                self.state = 668
                self.match(SQLParser.DATA_FILETYPE)
                self.state = 669
                self.match(SQLParser.DATA_FILE)
                self.state = 670
                self.match(SQLParser.DATA_EXPRESSION)
                self.state = 671
                self.match(SQLParser.DATA_FROM)
                self.state = 672
                self.match(SQLParser.DATA_FILETYPE)
                self.state = 673
                self.match(SQLParser.DATA_FILE)
                self.state = 674
                self.match(SQLParser.DATA_EXPRESSION)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 678
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==225:
                self.state = 677
                self.match(SQLParser.DATA_SEMICOLON)


            self.state = 681
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==17:
                self.state = 680
                self.match(SQLParser.CRLF)


        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx





