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

class APIParser ( Parser ):

    grammarFileName = "APIParser.g4"

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

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

    sharedContextCache = PredictionContextCache()

    literalNames = [ "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'_SESSION'", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "'@'", "'.'", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "'['", "']'", "'\"'", "'''", 
                     "'\\'", "<INVALID>", "'_EXIT'", "'_QUIT'", "'_SPOOL'", 
                     "'_SLEEP'", "'_USE'", "<INVALID>", "'> {%'", "'_ASSERT'", 
                     "'_START'", "'_LOAD'", "'_HOST'", "'_HELP'", "'_IF'", 
                     "'_ENDIF'", "'_SET'", "'_LOOP'", "'_WHENEVER'", "'_SSH'", 
                     "'_JOB'", "'_COMPARE'", "'_DATA'", "'_MONITOR'", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "'###'", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'PROXY'", "'HTTPS_VERIFY'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'RELEASE'", 
                     "<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>", "'BEGIN'", "'UNTIL'", "'INTERVAL'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'BREAK'", "'END'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'ERROR'", "<INVALID>", "<INVALID>", "'EXIT'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'API'", "'SQL'", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'CONNECT'", "'WITH'", "'USER'", "'KEYFILE'", 
                     "'PASSWORD'", "'EXECUTE'", "'DISCONNECT'", "<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>", "<INVALID>", "'WAIT'", "'SHUTDOWN'", 
                     "'ABORT'", "'TIMER'", "'REGISTER'", "'DEREGISTER'", 
                     "'WORKER'", "'JOBMANAGER'", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<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'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "'MONITORMANAGER'", "'WORKERS'", 
                     "<INVALID>", "'TASK'", "<INVALID>", "<INVALID>", "'STOP'", 
                     "'REPORT'", "'LIST'" ]

    symbolicNames = [ "<INVALID>", "HTTP_OPEN", "COMMENT1", "COMMENT2", 
                      "APISET", "SESSION", "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", "SCRIPT", "ASSERT", "START", "LOAD", 
                      "HOST", "HELP", "IF", "ENDIF", "SET", "LOOP", "WHENEVER", 
                      "SSH", "JOB", "COMPARE", "DATA", "MONITOR", "INT", 
                      "DECIMAL", "String", "HTTP_COMMENT", "DIVIDE", "SP", 
                      "HttpMethod", "HTTP_CLOSE", "URI_SPACE", "HttpRequestTarget", 
                      "HeaderField_SPACE", "HttpHeaderFieldName", "FIELD_COLON", 
                      "FIELD_CRLF", "HttpHeaderFieldValue", "HttpHeaderFieldValueEnd", 
                      "HttpMultipartBoundaryEnd", "HttpMultipartBoundary", 
                      "HttpMessageBodyComment", "HttpMessageBodyOperate", 
                      "APISET_SPACE", "APISET_PROXY", "APISET_HTTPSVERIFY", 
                      "APISET_ON", "APISET_OFF", "APISET_EXPRESSION", "APISET_SEMICOLON", 
                      "APISET_CRLF", "SESSION_SPACE", "SESSION_SAVE", "SESSION_RELEASE", 
                      "SESSION_RESTORE", "SESSION_SHOW", "SESSION_NAME", 
                      "SESSION_SEMICOLON", "SESSION_CRLF", "ScriptBlock", 
                      "EchoBlock", "ASSERT_SPACE", "ASSERT_OPEN", "ASSERT_CLOSE", 
                      "ASSERT_CRLF", "ASSERT_EXPRESSION", "ASSERT_NAME", 
                      "ASSERT_COMMA", "ASSERT_SEMICOLON", "LOAD_SPACE", 
                      "LOAD_EQUAL", "LOAD_PLUGIN", "LOAD_MAP", "LOAD_JDBCDRIVER", 
                      "LOAD_JDBCFILE", "LOAD_JDBCCLASS", "LOAD_JDBCNAME", 
                      "LOAD_JDBCPROP", "LOAD_JDBCURL", "LOAD_EXPRESSION", 
                      "LOAD_SEMICOLON", "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_INTERVAL", "LOOP_INT", "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_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", 
                      "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_TO", "DATA_EXPRESSION", "DATACOLUMN_SPACE", 
                      "DATACOLUMN_CLOSE", "DATACOLUMN_CONTENT", "HELP_SPACE", 
                      "HELP_COMMAND", "HELP_CRLF", "HELP_SEMICOLON", "MONITOR_SPACE", 
                      "MONITOR_MANAGER", "MONITOR_WORKERS", "MONITOR_CREATE", 
                      "MONITOR_TASK", "MONITOR_EQUAL", "MONITOR_START", 
                      "MONITOR_STOP", "MONITOR_REPORT", "MONITOR_LIST", 
                      "MONITOR_ON", "MONITOR_OFF", "MONITOR_EXPRESSION", 
                      "MONITOR_CRLF", "MONITOR_SEMICOLON" ]

    RULE_prog = 0
    RULE_command = 1
    RULE_apiset = 2
    RULE_session = 3
    RULE_http = 4
    RULE_httpMessage = 5
    RULE_httpRequestLine = 6
    RULE_httpMethod = 7
    RULE_httpRequestTarget = 8
    RULE_httpHeaderFields = 9
    RULE_httpHeaderField = 10
    RULE_httpHeaderFieldName = 11
    RULE_httpHeaderFieldValue = 12
    RULE_httpMessageBody = 13
    RULE_httpMultipart = 14
    RULE_httpMultipartBoundary = 15
    RULE_httpBoundaryDelimiter = 16
    RULE_httpMessageBodyContent = 17
    RULE_httpMessageBodyOperate = 18
    RULE_httpMessageBodyOther = 19
    RULE_baseCommand = 20
    RULE_exit = 21
    RULE_quit = 22
    RULE_use = 23
    RULE_sleep = 24
    RULE_start = 25
    RULE_load = 26
    RULE_assert = 27
    RULE_host = 28
    RULE_loop = 29
    RULE_if = 30
    RULE_endif = 31
    RULE_whenever = 32
    RULE_spool = 33
    RULE_echo = 34
    RULE_script = 35
    RULE_set = 36
    RULE_ssh = 37
    RULE_job = 38
    RULE_compare = 39
    RULE_data = 40
    RULE_help = 41
    RULE_monitor = 42

    ruleNames =  [ "prog", "command", "apiset", "session", "http", "httpMessage", 
                   "httpRequestLine", "httpMethod", "httpRequestTarget", 
                   "httpHeaderFields", "httpHeaderField", "httpHeaderFieldName", 
                   "httpHeaderFieldValue", "httpMessageBody", "httpMultipart", 
                   "httpMultipartBoundary", "httpBoundaryDelimiter", "httpMessageBodyContent", 
                   "httpMessageBodyOperate", "httpMessageBodyOther", "baseCommand", 
                   "exit", "quit", "use", "sleep", "start", "load", "assert", 
                   "host", "loop", "if", "endif", "whenever", "spool", "echo", 
                   "script", "set", "ssh", "job", "compare", "data", "help", 
                   "monitor" ]

    EOF = Token.EOF
    HTTP_OPEN=1
    COMMENT1=2
    COMMENT2=3
    APISET=4
    SESSION=5
    CRLF=6
    COMMA=7
    SEMICOLON=8
    COLON=9
    AT=10
    DOT=11
    SLASH=12
    BRACKET_OPEN=13
    BRACKET_CLOSE=14
    SQUARE_OPEN=15
    SQUARE_CLOSE=16
    DOUBLE_QUOTE=17
    SINGLE_QUOTE=18
    ESCAPE=19
    SPACE=20
    EXIT=21
    QUIT=22
    SPOOL=23
    SLEEP=24
    USE=25
    ECHO=26
    SCRIPT=27
    ASSERT=28
    START=29
    LOAD=30
    HOST=31
    HELP=32
    IF=33
    ENDIF=34
    SET=35
    LOOP=36
    WHENEVER=37
    SSH=38
    JOB=39
    COMPARE=40
    DATA=41
    MONITOR=42
    INT=43
    DECIMAL=44
    String=45
    HTTP_COMMENT=46
    DIVIDE=47
    SP=48
    HttpMethod=49
    HTTP_CLOSE=50
    URI_SPACE=51
    HttpRequestTarget=52
    HeaderField_SPACE=53
    HttpHeaderFieldName=54
    FIELD_COLON=55
    FIELD_CRLF=56
    HttpHeaderFieldValue=57
    HttpHeaderFieldValueEnd=58
    HttpMultipartBoundaryEnd=59
    HttpMultipartBoundary=60
    HttpMessageBodyComment=61
    HttpMessageBodyOperate=62
    APISET_SPACE=63
    APISET_PROXY=64
    APISET_HTTPSVERIFY=65
    APISET_ON=66
    APISET_OFF=67
    APISET_EXPRESSION=68
    APISET_SEMICOLON=69
    APISET_CRLF=70
    SESSION_SPACE=71
    SESSION_SAVE=72
    SESSION_RELEASE=73
    SESSION_RESTORE=74
    SESSION_SHOW=75
    SESSION_NAME=76
    SESSION_SEMICOLON=77
    SESSION_CRLF=78
    ScriptBlock=79
    EchoBlock=80
    ASSERT_SPACE=81
    ASSERT_OPEN=82
    ASSERT_CLOSE=83
    ASSERT_CRLF=84
    ASSERT_EXPRESSION=85
    ASSERT_NAME=86
    ASSERT_COMMA=87
    ASSERT_SEMICOLON=88
    LOAD_SPACE=89
    LOAD_EQUAL=90
    LOAD_PLUGIN=91
    LOAD_MAP=92
    LOAD_JDBCDRIVER=93
    LOAD_JDBCFILE=94
    LOAD_JDBCCLASS=95
    LOAD_JDBCNAME=96
    LOAD_JDBCPROP=97
    LOAD_JDBCURL=98
    LOAD_EXPRESSION=99
    LOAD_SEMICOLON=100
    LOAD_CRLF=101
    START_SPACE=102
    START_EXPRESSION=103
    START_CRLF=104
    HOST_SPACE=105
    HOST_EXPRESSION=106
    HOST_CRLF=107
    IF_SPACE=108
    IF_OPEN=109
    IF_CLOSE=110
    IF_EXPRESSION=111
    LOOP_SEMICOLON=112
    LOOP_SPACE=113
    LOOP_BEGIN=114
    LOOP_UNTIL=115
    LOOP_INTERVAL=116
    LOOP_INT=117
    LOOP_OPEN=118
    LOOP_CLOSE=119
    LOOP_BREAK=120
    LOOP_END=121
    LOOP_CONTINUE=122
    LOOP_EXPRESSION=123
    LOOP_CRLF=124
    WHENEVER_SPACE=125
    WHENEVER_EXITCODE=126
    WHENEVER_ERROR=127
    WHENEVER_SEMICOLON=128
    WHENEVER_CONTINUE=129
    WHENEVER_EXIT=130
    WHENEVER_CRLF=131
    SET_SPACE=132
    SET_EXPRESSION=133
    SET_SEMICOLON=134
    SET_CRLF=135
    USE_API=136
    USE_SQL=137
    USE_SPACE=138
    USE_SEMICOLON=139
    USE_CRLF=140
    SSH_CONNECT=141
    SSH_WITH=142
    SSH_USER=143
    SSH_KEYFILE=144
    SSH_PASSWORD=145
    SSH_EXECUTE=146
    SSH_DISCONNECT=147
    SSH_SAVE=148
    SSH_RESTORE=149
    SFTP=150
    SFTP_CHMOD=151
    SFTP_GETCWD=152
    SFTP_CHDIR=153
    SFTP_CHOWN=154
    SFTP_MKDIR=155
    SFTP_GET=156
    SFTP_PUT=157
    SFTP_REMOVE=158
    SFTP_RENAME=159
    SFTP_LISTDIR=160
    SFTP_TRUNCATE=161
    SSH_SPACE=162
    SSH_SEMICOLON=163
    SSH_CRLF=164
    SSH_EXPRESSION=165
    JOB_SPACE=166
    JOB_SEMICOLON=167
    JOB_EQUAL=168
    JOB_CRLF=169
    JOB_CREATE=170
    JOB_SHOW=171
    JOB_SET=172
    JOB_START=173
    JOB_WAIT=174
    JOB_SHUTDOWN=175
    JOB_ABORT=176
    JOB_TIMER=177
    JOB_REGISTER=178
    JOB_DEREGISTER=179
    JOB_WORKER=180
    JOB_MANGER=181
    JOB_ON=182
    JOB_OFF=183
    JOB_TO=184
    JOB_EXPRESSION=185
    COMPARE_SPACE=186
    COMPARE_SEMICOLON=187
    COMPARE_EQUAL=188
    COMPARE_CRLF=189
    COMPARE_SET=190
    COMPARE_UNSET=191
    COMPARE_MASK=192
    COMPARE_NOMASK=193
    COMPARE_MASKLINE=194
    COMPARE_NOMASKLINE=195
    COMPARE_CASE=196
    COMPARE_NOCASE=197
    COMPARE_IGBLANK=198
    COMPARE_NOIGBLANK=199
    COMPARE_TRIM=200
    COMPARE_NOTRIM=201
    COMPARE_OUTPUT=202
    COMPARE_CONSOLE=203
    COMPARE_DIFFFILE=204
    COMPARE_SKIPLINE=205
    COMPARE_NOSKIPLINE=206
    COMPARE_RESET=207
    COMPARE_ALGORITHM=208
    COMPARE_ENCODING=209
    COMPARE_WORK=210
    COMPARE_REFERENCE=211
    COMPARE_LCS=212
    COMPARE_MYERS=213
    COMPARE_EXPRESSION=214
    DATA_SPACE=215
    DATA_SEMICOLON=216
    DATA_SET=217
    DATA_SEEDFILE=218
    DATA_DIR=219
    DATA_CREATE=220
    DATA_FILE=221
    DATA_FILETYPE=222
    DATA_ROWS=223
    DATA_INT=224
    DATA_COMMA=225
    DATACOLUMN_OPEN=226
    DATA_CONVERT=227
    DATA_TO=228
    DATA_EXPRESSION=229
    DATACOLUMN_SPACE=230
    DATACOLUMN_CLOSE=231
    DATACOLUMN_CONTENT=232
    HELP_SPACE=233
    HELP_COMMAND=234
    HELP_CRLF=235
    HELP_SEMICOLON=236
    MONITOR_SPACE=237
    MONITOR_MANAGER=238
    MONITOR_WORKERS=239
    MONITOR_CREATE=240
    MONITOR_TASK=241
    MONITOR_EQUAL=242
    MONITOR_START=243
    MONITOR_STOP=244
    MONITOR_REPORT=245
    MONITOR_LIST=246
    MONITOR_ON=247
    MONITOR_OFF=248
    MONITOR_EXPRESSION=249
    MONITOR_CRLF=250
    MONITOR_SEMICOLON=251

    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(APIParser.CommandContext,0)


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

        def getRuleIndex(self):
            return APIParser.RULE_prog

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




    def prog(self):

        localctx = APIParser.ProgContext(self, self._ctx, self.state)
        self.enterRule(localctx, 0, self.RULE_prog)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 86
            self.command()
            self.state = 87
            self.match(APIParser.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(APIParser.BaseCommandContext,0)


        def apiset(self):
            return self.getTypedRuleContext(APIParser.ApisetContext,0)


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


        def http(self):
            return self.getTypedRuleContext(APIParser.HttpContext,0)


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

        def getRuleIndex(self):
            return APIParser.RULE_command

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




    def command(self):

        localctx = APIParser.CommandContext(self, self._ctx, self.state)
        self.enterRule(localctx, 2, self.RULE_command)
        try:
            self.state = 94
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42]:
                self.enterOuterAlt(localctx, 1)
                self.state = 89
                self.baseCommand()
                pass
            elif token in [4]:
                self.enterOuterAlt(localctx, 2)
                self.state = 90
                self.apiset()
                pass
            elif token in [5]:
                self.enterOuterAlt(localctx, 3)
                self.state = 91
                self.session()
                pass
            elif token in [1]:
                self.enterOuterAlt(localctx, 4)
                self.state = 92
                self.http()
                pass
            elif token in [-1]:
                self.enterOuterAlt(localctx, 5)
                self.state = 93
                self.match(APIParser.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 ApisetContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def APISET(self):
            return self.getToken(APIParser.APISET, 0)

        def APISET_SEMICOLON(self):
            return self.getToken(APIParser.APISET_SEMICOLON, 0)

        def APISET_PROXY(self):
            return self.getToken(APIParser.APISET_PROXY, 0)

        def APISET_EXPRESSION(self):
            return self.getToken(APIParser.APISET_EXPRESSION, 0)

        def APISET_HTTPSVERIFY(self):
            return self.getToken(APIParser.APISET_HTTPSVERIFY, 0)

        def APISET_ON(self):
            return self.getToken(APIParser.APISET_ON, 0)

        def APISET_OFF(self):
            return self.getToken(APIParser.APISET_OFF, 0)

        def getRuleIndex(self):
            return APIParser.RULE_apiset

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




    def apiset(self):

        localctx = APIParser.ApisetContext(self, self._ctx, self.state)
        self.enterRule(localctx, 4, self.RULE_apiset)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 96
            self.match(APIParser.APISET)
            self.state = 102
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [64]:
                self.state = 97
                self.match(APIParser.APISET_PROXY)
                self.state = 98
                self.match(APIParser.APISET_EXPRESSION)
                pass
            elif token in [65]:
                self.state = 99
                self.match(APIParser.APISET_HTTPSVERIFY)
                self.state = 100
                _la = self._input.LA(1)
                if not(_la==66 or _la==67):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass
            elif token in [-1, 69]:
                pass
            else:
                raise NoViableAltException(self)

            self.state = 105
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==69:
                self.state = 104
                self.match(APIParser.APISET_SEMICOLON)


        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(APIParser.SESSION, 0)

        def SESSION_SEMICOLON(self):
            return self.getToken(APIParser.SESSION_SEMICOLON, 0)

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

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

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_session

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




    def session(self):

        localctx = APIParser.SessionContext(self, self._ctx, self.state)
        self.enterRule(localctx, 6, self.RULE_session)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 107
            self.match(APIParser.SESSION)
            self.state = 117
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [72]:
                self.state = 108
                self.match(APIParser.SESSION_SAVE)
                self.state = 109
                self.match(APIParser.SESSION_NAME)
                pass
            elif token in [73]:
                self.state = 110
                self.match(APIParser.SESSION_RELEASE)
                pass
            elif token in [74]:
                self.state = 111
                self.match(APIParser.SESSION_RESTORE)
                self.state = 112
                self.match(APIParser.SESSION_NAME)
                pass
            elif token in [75]:
                self.state = 113
                self.match(APIParser.SESSION_SHOW)
                self.state = 115
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==76:
                    self.state = 114
                    self.match(APIParser.SESSION_NAME)


                pass
            else:
                raise NoViableAltException(self)

            self.state = 120
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==77:
                self.state = 119
                self.match(APIParser.SESSION_SEMICOLON)


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


    class HttpContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def HTTP_OPEN(self):
            return self.getToken(APIParser.HTTP_OPEN, 0)

        def httpMessage(self):
            return self.getTypedRuleContext(APIParser.HttpMessageContext,0)


        def HTTP_CLOSE(self):
            return self.getToken(APIParser.HTTP_CLOSE, 0)

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

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

        def getRuleIndex(self):
            return APIParser.RULE_http

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




    def http(self):

        localctx = APIParser.HttpContext(self, self._ctx, self.state)
        self.enterRule(localctx, 8, self.RULE_http)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 122
            self.match(APIParser.HTTP_OPEN)
            self.state = 126
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==6:
                self.state = 123
                self.match(APIParser.CRLF)
                self.state = 128
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 129
            self.httpMessage()
            self.state = 130
            _la = self._input.LA(1)
            if not(_la==-1 or _la==50):
                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 HttpMessageContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def httpRequestLine(self):
            return self.getTypedRuleContext(APIParser.HttpRequestLineContext,0)


        def httpHeaderFields(self):
            return self.getTypedRuleContext(APIParser.HttpHeaderFieldsContext,0)


        def httpMessageBody(self):
            return self.getTypedRuleContext(APIParser.HttpMessageBodyContext,0)


        def getRuleIndex(self):
            return APIParser.RULE_httpMessage

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




    def httpMessage(self):

        localctx = APIParser.HttpMessageContext(self, self._ctx, self.state)
        self.enterRule(localctx, 10, self.RULE_httpMessage)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 132
            self.httpRequestLine()
            self.state = 133
            self.httpHeaderFields()
            self.state = 135
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if ((_la) & ~0x3f) == 0 and ((1 << _la) & 5764642707406323776) != 0:
                self.state = 134
                self.httpMessageBody()


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


    class HttpRequestLineContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def httpMethod(self):
            return self.getTypedRuleContext(APIParser.HttpMethodContext,0)


        def httpRequestTarget(self):
            return self.getTypedRuleContext(APIParser.HttpRequestTargetContext,0)


        def getRuleIndex(self):
            return APIParser.RULE_httpRequestLine

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




    def httpRequestLine(self):

        localctx = APIParser.HttpRequestLineContext(self, self._ctx, self.state)
        self.enterRule(localctx, 12, self.RULE_httpRequestLine)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 137
            self.httpMethod()
            self.state = 138
            self.httpRequestTarget()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class HttpMethodContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def HttpMethod(self):
            return self.getToken(APIParser.HttpMethod, 0)

        def getRuleIndex(self):
            return APIParser.RULE_httpMethod

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




    def httpMethod(self):

        localctx = APIParser.HttpMethodContext(self, self._ctx, self.state)
        self.enterRule(localctx, 14, self.RULE_httpMethod)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 140
            self.match(APIParser.HttpMethod)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class HttpRequestTargetContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def HttpRequestTarget(self):
            return self.getToken(APIParser.HttpRequestTarget, 0)

        def getRuleIndex(self):
            return APIParser.RULE_httpRequestTarget

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




    def httpRequestTarget(self):

        localctx = APIParser.HttpRequestTargetContext(self, self._ctx, self.state)
        self.enterRule(localctx, 16, self.RULE_httpRequestTarget)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 142
            self.match(APIParser.HttpRequestTarget)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class HttpHeaderFieldsContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def httpHeaderField(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(APIParser.HttpHeaderFieldContext)
            else:
                return self.getTypedRuleContext(APIParser.HttpHeaderFieldContext,i)


        def getRuleIndex(self):
            return APIParser.RULE_httpHeaderFields

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




    def httpHeaderFields(self):

        localctx = APIParser.HttpHeaderFieldsContext(self, self._ctx, self.state)
        self.enterRule(localctx, 18, self.RULE_httpHeaderFields)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 147
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==54:
                self.state = 144
                self.httpHeaderField()
                self.state = 149
                self._errHandler.sync(self)
                _la = self._input.LA(1)

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


    class HttpHeaderFieldContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def httpHeaderFieldName(self):
            return self.getTypedRuleContext(APIParser.HttpHeaderFieldNameContext,0)


        def FIELD_COLON(self):
            return self.getToken(APIParser.FIELD_COLON, 0)

        def httpHeaderFieldValue(self):
            return self.getTypedRuleContext(APIParser.HttpHeaderFieldValueContext,0)


        def getRuleIndex(self):
            return APIParser.RULE_httpHeaderField

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




    def httpHeaderField(self):

        localctx = APIParser.HttpHeaderFieldContext(self, self._ctx, self.state)
        self.enterRule(localctx, 20, self.RULE_httpHeaderField)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 150
            self.httpHeaderFieldName()
            self.state = 151
            self.match(APIParser.FIELD_COLON)
            self.state = 152
            self.httpHeaderFieldValue()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class HttpHeaderFieldNameContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def HttpHeaderFieldName(self):
            return self.getToken(APIParser.HttpHeaderFieldName, 0)

        def getRuleIndex(self):
            return APIParser.RULE_httpHeaderFieldName

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




    def httpHeaderFieldName(self):

        localctx = APIParser.HttpHeaderFieldNameContext(self, self._ctx, self.state)
        self.enterRule(localctx, 22, self.RULE_httpHeaderFieldName)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 154
            self.match(APIParser.HttpHeaderFieldName)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class HttpHeaderFieldValueContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def HttpHeaderFieldValue(self):
            return self.getToken(APIParser.HttpHeaderFieldValue, 0)

        def HttpHeaderFieldValueEnd(self):
            return self.getToken(APIParser.HttpHeaderFieldValueEnd, 0)

        def getRuleIndex(self):
            return APIParser.RULE_httpHeaderFieldValue

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




    def httpHeaderFieldValue(self):

        localctx = APIParser.HttpHeaderFieldValueContext(self, self._ctx, self.state)
        self.enterRule(localctx, 24, self.RULE_httpHeaderFieldValue)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 156
            self.match(APIParser.HttpHeaderFieldValue)
            self.state = 157
            self.match(APIParser.HttpHeaderFieldValueEnd)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class HttpMessageBodyContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def httpMultipart(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(APIParser.HttpMultipartContext)
            else:
                return self.getTypedRuleContext(APIParser.HttpMultipartContext,i)


        def httpMessageBodyContent(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(APIParser.HttpMessageBodyContentContext)
            else:
                return self.getTypedRuleContext(APIParser.HttpMessageBodyContentContext,i)


        def getRuleIndex(self):
            return APIParser.RULE_httpMessageBody

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




    def httpMessageBody(self):

        localctx = APIParser.HttpMessageBodyContext(self, self._ctx, self.state)
        self.enterRule(localctx, 26, self.RULE_httpMessageBody)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 161 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 161
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [60]:
                    self.state = 159
                    self.httpMultipart()
                    pass
                elif token in [6, 45, 62]:
                    self.state = 160
                    self.httpMessageBodyContent()
                    pass
                else:
                    raise NoViableAltException(self)

                self.state = 163 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (((_la) & ~0x3f) == 0 and ((1 << _la) & 5764642707406323776) != 0):
                    break

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


    class HttpMultipartContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def HttpMultipartBoundaryEnd(self):
            return self.getToken(APIParser.HttpMultipartBoundaryEnd, 0)

        def httpMultipartBoundary(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(APIParser.HttpMultipartBoundaryContext)
            else:
                return self.getTypedRuleContext(APIParser.HttpMultipartBoundaryContext,i)


        def getRuleIndex(self):
            return APIParser.RULE_httpMultipart

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




    def httpMultipart(self):

        localctx = APIParser.HttpMultipartContext(self, self._ctx, self.state)
        self.enterRule(localctx, 28, self.RULE_httpMultipart)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 166 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 165
                self.httpMultipartBoundary()
                self.state = 168 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==60):
                    break

            self.state = 170
            self.match(APIParser.HttpMultipartBoundaryEnd)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class HttpMultipartBoundaryContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def httpBoundaryDelimiter(self):
            return self.getTypedRuleContext(APIParser.HttpBoundaryDelimiterContext,0)


        def httpHeaderFields(self):
            return self.getTypedRuleContext(APIParser.HttpHeaderFieldsContext,0)


        def httpMessageBodyContent(self):
            return self.getTypedRuleContext(APIParser.HttpMessageBodyContentContext,0)


        def getRuleIndex(self):
            return APIParser.RULE_httpMultipartBoundary

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




    def httpMultipartBoundary(self):

        localctx = APIParser.HttpMultipartBoundaryContext(self, self._ctx, self.state)
        self.enterRule(localctx, 30, self.RULE_httpMultipartBoundary)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 172
            self.httpBoundaryDelimiter()
            self.state = 173
            self.httpHeaderFields()
            self.state = 174
            self.httpMessageBodyContent()
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class HttpBoundaryDelimiterContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def HttpMultipartBoundary(self):
            return self.getToken(APIParser.HttpMultipartBoundary, 0)

        def getRuleIndex(self):
            return APIParser.RULE_httpBoundaryDelimiter

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




    def httpBoundaryDelimiter(self):

        localctx = APIParser.HttpBoundaryDelimiterContext(self, self._ctx, self.state)
        self.enterRule(localctx, 32, self.RULE_httpBoundaryDelimiter)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 176
            self.match(APIParser.HttpMultipartBoundary)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class HttpMessageBodyContentContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def httpMessageBodyOperate(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(APIParser.HttpMessageBodyOperateContext)
            else:
                return self.getTypedRuleContext(APIParser.HttpMessageBodyOperateContext,i)


        def httpMessageBodyOther(self, i:int=None):
            if i is None:
                return self.getTypedRuleContexts(APIParser.HttpMessageBodyOtherContext)
            else:
                return self.getTypedRuleContext(APIParser.HttpMessageBodyOtherContext,i)


        def getRuleIndex(self):
            return APIParser.RULE_httpMessageBodyContent

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




    def httpMessageBodyContent(self):

        localctx = APIParser.HttpMessageBodyContentContext(self, self._ctx, self.state)
        self.enterRule(localctx, 34, self.RULE_httpMessageBodyContent)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 180 
            self._errHandler.sync(self)
            _alt = 1
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt == 1:
                    self.state = 180
                    self._errHandler.sync(self)
                    token = self._input.LA(1)
                    if token in [62]:
                        self.state = 178
                        self.httpMessageBodyOperate()
                        pass
                    elif token in [6, 45]:
                        self.state = 179
                        self.httpMessageBodyOther()
                        pass
                    else:
                        raise NoViableAltException(self)


                else:
                    raise NoViableAltException(self)
                self.state = 182 
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,13,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 HttpMessageBodyOperateContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def HttpMessageBodyOperate(self):
            return self.getToken(APIParser.HttpMessageBodyOperate, 0)

        def getRuleIndex(self):
            return APIParser.RULE_httpMessageBodyOperate

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




    def httpMessageBodyOperate(self):

        localctx = APIParser.HttpMessageBodyOperateContext(self, self._ctx, self.state)
        self.enterRule(localctx, 36, self.RULE_httpMessageBodyOperate)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 184
            self.match(APIParser.HttpMessageBodyOperate)
        except RecognitionException as re:
            localctx.exception = re
            self._errHandler.reportError(self, re)
            self._errHandler.recover(self, re)
        finally:
            self.exitRule()
        return localctx


    class HttpMessageBodyOtherContext(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(APIParser.String)
            else:
                return self.getToken(APIParser.String, i)

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

        def getRuleIndex(self):
            return APIParser.RULE_httpMessageBodyOther

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




    def httpMessageBodyOther(self):

        localctx = APIParser.HttpMessageBodyOtherContext(self, self._ctx, self.state)
        self.enterRule(localctx, 38, self.RULE_httpMessageBodyOther)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 187 
            self._errHandler.sync(self)
            _alt = 1
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt == 1:
                    self.state = 186
                    _la = self._input.LA(1)
                    if not(_la==6 or _la==45):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()

                else:
                    raise NoViableAltException(self)
                self.state = 189 
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,14,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 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(APIParser.AssertContext,0)


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


        def help_(self):
            return self.getTypedRuleContext(APIParser.HelpContext,0)


        def monitor(self):
            return self.getTypedRuleContext(APIParser.MonitorContext,0)


        def getRuleIndex(self):
            return APIParser.RULE_baseCommand

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




    def baseCommand(self):

        localctx = APIParser.BaseCommandContext(self, self._ctx, self.state)
        self.enterRule(localctx, 40, self.RULE_baseCommand)
        try:
            self.state = 213
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [28]:
                self.enterOuterAlt(localctx, 1)
                self.state = 191
                self.assert_()
                pass
            elif token in [30]:
                self.enterOuterAlt(localctx, 2)
                self.state = 192
                self.load()
                pass
            elif token in [31]:
                self.enterOuterAlt(localctx, 3)
                self.state = 193
                self.host()
                pass
            elif token in [29]:
                self.enterOuterAlt(localctx, 4)
                self.state = 194
                self.start()
                pass
            elif token in [36]:
                self.enterOuterAlt(localctx, 5)
                self.state = 195
                self.loop()
                pass
            elif token in [33]:
                self.enterOuterAlt(localctx, 6)
                self.state = 196
                self.if_()
                pass
            elif token in [34]:
                self.enterOuterAlt(localctx, 7)
                self.state = 197
                self.endif()
                pass
            elif token in [37]:
                self.enterOuterAlt(localctx, 8)
                self.state = 198
                self.whenever()
                pass
            elif token in [35]:
                self.enterOuterAlt(localctx, 9)
                self.state = 199
                self.set_()
                pass
            elif token in [25]:
                self.enterOuterAlt(localctx, 10)
                self.state = 200
                self.use()
                pass
            elif token in [21]:
                self.enterOuterAlt(localctx, 11)
                self.state = 201
                self.exit()
                pass
            elif token in [22]:
                self.enterOuterAlt(localctx, 12)
                self.state = 202
                self.quit()
                pass
            elif token in [24]:
                self.enterOuterAlt(localctx, 13)
                self.state = 203
                self.sleep()
                pass
            elif token in [23]:
                self.enterOuterAlt(localctx, 14)
                self.state = 204
                self.spool()
                pass
            elif token in [27]:
                self.enterOuterAlt(localctx, 15)
                self.state = 205
                self.script()
                pass
            elif token in [26]:
                self.enterOuterAlt(localctx, 16)
                self.state = 206
                self.echo()
                pass
            elif token in [38]:
                self.enterOuterAlt(localctx, 17)
                self.state = 207
                self.ssh()
                pass
            elif token in [39]:
                self.enterOuterAlt(localctx, 18)
                self.state = 208
                self.job()
                pass
            elif token in [40]:
                self.enterOuterAlt(localctx, 19)
                self.state = 209
                self.compare()
                pass
            elif token in [41]:
                self.enterOuterAlt(localctx, 20)
                self.state = 210
                self.data()
                pass
            elif token in [32]:
                self.enterOuterAlt(localctx, 21)
                self.state = 211
                self.help_()
                pass
            elif token in [42]:
                self.enterOuterAlt(localctx, 22)
                self.state = 212
                self.monitor()
                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(APIParser.EXIT, 0)

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_exit

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




    def exit(self):

        localctx = APIParser.ExitContext(self, self._ctx, self.state)
        self.enterRule(localctx, 42, self.RULE_exit)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 215
            self.match(APIParser.EXIT)
            self.state = 217
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==43:
                self.state = 216
                self.match(APIParser.INT)


            self.state = 220
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==8:
                self.state = 219
                self.match(APIParser.SEMICOLON)


            self.state = 223
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 222
                self.match(APIParser.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(APIParser.QUIT, 0)

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_quit

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




    def quit(self):

        localctx = APIParser.QuitContext(self, self._ctx, self.state)
        self.enterRule(localctx, 44, self.RULE_quit)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 225
            self.match(APIParser.QUIT)
            self.state = 227
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==43:
                self.state = 226
                self.match(APIParser.INT)


            self.state = 230
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==8:
                self.state = 229
                self.match(APIParser.SEMICOLON)


            self.state = 233
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 232
                self.match(APIParser.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(APIParser.USE, 0)

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

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_use

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




    def use(self):

        localctx = APIParser.UseContext(self, self._ctx, self.state)
        self.enterRule(localctx, 46, self.RULE_use)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 235
            self.match(APIParser.USE)
            self.state = 236
            _la = self._input.LA(1)
            if not(_la==136 or _la==137):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 238
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==139:
                self.state = 237
                self.match(APIParser.USE_SEMICOLON)


            self.state = 241
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 240
                self.match(APIParser.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(APIParser.SLEEP, 0)

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_sleep

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




    def sleep(self):

        localctx = APIParser.SleepContext(self, self._ctx, self.state)
        self.enterRule(localctx, 48, self.RULE_sleep)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 243
            self.match(APIParser.SLEEP)
            self.state = 244
            self.match(APIParser.INT)
            self.state = 246
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==8:
                self.state = 245
                self.match(APIParser.SEMICOLON)


            self.state = 249
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 248
                self.match(APIParser.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(APIParser.START, 0)

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_start

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




    def start(self):

        localctx = APIParser.StartContext(self, self._ctx, self.state)
        self.enterRule(localctx, 50, self.RULE_start)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 251
            self.match(APIParser.START)
            self.state = 253 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 252
                self.match(APIParser.START_EXPRESSION)
                self.state = 255 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==103):
                    break

            self.state = 258
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==8:
                self.state = 257
                self.match(APIParser.SEMICOLON)


            self.state = 261
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 260
                self.match(APIParser.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(APIParser.LOAD, 0)

        def LOAD_SEMICOLON(self):
            return self.getToken(APIParser.LOAD_SEMICOLON, 0)

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

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

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

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

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

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

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

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

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_load

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




    def load(self):

        localctx = APIParser.LoadContext(self, self._ctx, self.state)
        self.enterRule(localctx, 52, self.RULE_load)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 263
            self.match(APIParser.LOAD)
            self.state = 289
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [91]:
                self.state = 264
                self.match(APIParser.LOAD_PLUGIN)
                self.state = 265
                self.match(APIParser.LOAD_EXPRESSION)
                pass
            elif token in [92]:
                self.state = 266
                self.match(APIParser.LOAD_MAP)
                self.state = 267
                self.match(APIParser.LOAD_EXPRESSION)
                pass
            elif token in [93]:
                self.state = 268
                self.match(APIParser.LOAD_JDBCDRIVER)
                self.state = 286
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 94)) & ~0x3f) == 0 and ((1 << (_la - 94)) & 31) != 0:
                    self.state = 284
                    self._errHandler.sync(self)
                    token = self._input.LA(1)
                    if token in [95]:
                        self.state = 269
                        self.match(APIParser.LOAD_JDBCCLASS)
                        self.state = 270
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 271
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [94]:
                        self.state = 272
                        self.match(APIParser.LOAD_JDBCFILE)
                        self.state = 273
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 274
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [96]:
                        self.state = 275
                        self.match(APIParser.LOAD_JDBCNAME)
                        self.state = 276
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 277
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [97]:
                        self.state = 278
                        self.match(APIParser.LOAD_JDBCPROP)
                        self.state = 279
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 280
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [98]:
                        self.state = 281
                        self.match(APIParser.LOAD_JDBCURL)
                        self.state = 282
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 283
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    else:
                        raise NoViableAltException(self)

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

                pass
            else:
                raise NoViableAltException(self)

            self.state = 292
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==100:
                self.state = 291
                self.match(APIParser.LOAD_SEMICOLON)


            self.state = 295
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 294
                self.match(APIParser.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(APIParser.ASSERT, 0)

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

        def ASSERT_NAME(self):
            return self.getToken(APIParser.ASSERT_NAME, 0)

        def ASSERT_SEMICOLON(self):
            return self.getToken(APIParser.ASSERT_SEMICOLON, 0)

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

        def ASSERT_COMMA(self):
            return self.getToken(APIParser.ASSERT_COMMA, 0)

        def getRuleIndex(self):
            return APIParser.RULE_assert

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




    def assert_(self):

        localctx = APIParser.AssertContext(self, self._ctx, self.state)
        self.enterRule(localctx, 54, self.RULE_assert)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 297
            self.match(APIParser.ASSERT)
            self.state = 298
            self.match(APIParser.ASSERT_EXPRESSION)
            self.state = 303
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==86 or _la==87:
                self.state = 300
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==87:
                    self.state = 299
                    self.match(APIParser.ASSERT_COMMA)


                self.state = 302
                self.match(APIParser.ASSERT_NAME)


            self.state = 306
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==88:
                self.state = 305
                self.match(APIParser.ASSERT_SEMICOLON)


            self.state = 309
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 308
                self.match(APIParser.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(APIParser.HOST, 0)

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_host

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




    def host(self):

        localctx = APIParser.HostContext(self, self._ctx, self.state)
        self.enterRule(localctx, 56, self.RULE_host)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 311
            self.match(APIParser.HOST)
            self.state = 312
            self.match(APIParser.HOST_EXPRESSION)
            self.state = 314
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==8:
                self.state = 313
                self.match(APIParser.SEMICOLON)


            self.state = 317
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 316
                self.match(APIParser.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(APIParser.LOOP, 0)

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

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

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

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

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

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

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

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

        def LOOP_INTERVAL(self):
            return self.getToken(APIParser.LOOP_INTERVAL, 0)

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

        def getRuleIndex(self):
            return APIParser.RULE_loop

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




    def loop(self):

        localctx = APIParser.LoopContext(self, self._ctx, self.state)
        self.enterRule(localctx, 58, self.RULE_loop)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 319
            self.match(APIParser.LOOP)
            self.state = 333
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [120]:
                self.state = 320
                self.match(APIParser.LOOP_BREAK)
                pass
            elif token in [121]:
                self.state = 321
                self.match(APIParser.LOOP_END)
                pass
            elif token in [122]:
                self.state = 322
                self.match(APIParser.LOOP_CONTINUE)
                pass
            elif token in [114]:
                self.state = 323
                self.match(APIParser.LOOP_BEGIN)
                self.state = 324
                self.match(APIParser.LOOP_UNTIL)
                self.state = 325
                self.match(APIParser.LOOP_EXPRESSION)
                pass
            elif token in [115, 117]:
                self.state = 327
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==117:
                    self.state = 326
                    self.match(APIParser.LOOP_INT)


                self.state = 329
                self.match(APIParser.LOOP_UNTIL)
                self.state = 330
                self.match(APIParser.LOOP_EXPRESSION)
                self.state = 331
                self.match(APIParser.LOOP_INTERVAL)
                self.state = 332
                self.match(APIParser.LOOP_INT)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 336
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==112:
                self.state = 335
                self.match(APIParser.LOOP_SEMICOLON)


            self.state = 339
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 338
                self.match(APIParser.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(APIParser.IF, 0)

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_if

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




    def if_(self):

        localctx = APIParser.IfContext(self, self._ctx, self.state)
        self.enterRule(localctx, 60, self.RULE_if)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 341
            self.match(APIParser.IF)
            self.state = 342
            self.match(APIParser.IF_EXPRESSION)
            self.state = 344
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==8:
                self.state = 343
                self.match(APIParser.SEMICOLON)


            self.state = 347
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 346
                self.match(APIParser.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(APIParser.ENDIF, 0)

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

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

        def getRuleIndex(self):
            return APIParser.RULE_endif

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




    def endif(self):

        localctx = APIParser.EndifContext(self, self._ctx, self.state)
        self.enterRule(localctx, 62, self.RULE_endif)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 349
            self.match(APIParser.ENDIF)
            self.state = 351
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==8:
                self.state = 350
                self.match(APIParser.SEMICOLON)


            self.state = 354
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 353
                self.match(APIParser.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(APIParser.WHENEVER, 0)

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

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

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

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_whenever

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




    def whenever(self):

        localctx = APIParser.WheneverContext(self, self._ctx, self.state)
        self.enterRule(localctx, 64, self.RULE_whenever)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 356
            self.match(APIParser.WHENEVER)
            self.state = 357
            self.match(APIParser.WHENEVER_ERROR)
            self.state = 361
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [129]:
                self.state = 358
                self.match(APIParser.WHENEVER_CONTINUE)
                pass
            elif token in [130]:
                self.state = 359
                self.match(APIParser.WHENEVER_EXIT)
                self.state = 360
                self.match(APIParser.WHENEVER_EXITCODE)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 364
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==128:
                self.state = 363
                self.match(APIParser.WHENEVER_SEMICOLON)


            self.state = 367
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 366
                self.match(APIParser.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(APIParser.SPOOL, 0)

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_spool

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




    def spool(self):

        localctx = APIParser.SpoolContext(self, self._ctx, self.state)
        self.enterRule(localctx, 66, self.RULE_spool)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 369
            self.match(APIParser.SPOOL)
            self.state = 370
            self.match(APIParser.String)
            self.state = 372
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==8:
                self.state = 371
                self.match(APIParser.SEMICOLON)


            self.state = 375
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 374
                self.match(APIParser.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(self):
            return self.getToken(APIParser.ECHO, 0)

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_echo

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




    def echo(self):

        localctx = APIParser.EchoContext(self, self._ctx, self.state)
        self.enterRule(localctx, 68, self.RULE_echo)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 377
            self.match(APIParser.ECHO)
            self.state = 378
            self.match(APIParser.EchoBlock)
            self.state = 380
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,53,self._ctx)
            if la_ == 1:
                self.state = 379
                _la = self._input.LA(1)
                if not(_la==-1 or _la==6):
                    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(self):
            return self.getToken(APIParser.SCRIPT, 0)

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

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

        def getRuleIndex(self):
            return APIParser.RULE_script

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




    def script(self):

        localctx = APIParser.ScriptContext(self, self._ctx, self.state)
        self.enterRule(localctx, 70, self.RULE_script)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 382
            self.match(APIParser.SCRIPT)
            self.state = 383
            self.match(APIParser.ScriptBlock)
            self.state = 385
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 384
                self.match(APIParser.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(APIParser.SET, 0)

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_set

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




    def set_(self):

        localctx = APIParser.SetContext(self, self._ctx, self.state)
        self.enterRule(localctx, 72, self.RULE_set)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 387
            self.match(APIParser.SET)
            self.state = 391
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==133:
                self.state = 388
                self.match(APIParser.SET_EXPRESSION)
                self.state = 393
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 395
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==134:
                self.state = 394
                self.match(APIParser.SET_SEMICOLON)


            self.state = 398
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 397
                self.match(APIParser.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(APIParser.SSH, 0)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_ssh

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




    def ssh(self):

        localctx = APIParser.SshContext(self, self._ctx, self.state)
        self.enterRule(localctx, 74, self.RULE_ssh)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 400
            self.match(APIParser.SSH)
            self.state = 460
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,61,self._ctx)
            if la_ == 1:
                self.state = 401
                self.match(APIParser.SSH_CONNECT)
                self.state = 402
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 403
                self.match(APIParser.SSH_WITH)
                self.state = 404
                self.match(APIParser.SSH_USER)
                self.state = 405
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 406
                self.match(APIParser.SSH_KEYFILE)
                self.state = 407
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 2:
                self.state = 408
                self.match(APIParser.SSH_CONNECT)
                self.state = 409
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 410
                self.match(APIParser.SSH_WITH)
                self.state = 411
                self.match(APIParser.SSH_USER)
                self.state = 412
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 415
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==145:
                    self.state = 413
                    self.match(APIParser.SSH_PASSWORD)
                    self.state = 414
                    self.match(APIParser.SSH_EXPRESSION)


                pass

            elif la_ == 3:
                self.state = 417
                self.match(APIParser.SSH_EXECUTE)
                self.state = 419 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 418
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 421 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==165):
                        break

                pass

            elif la_ == 4:
                self.state = 423
                self.match(APIParser.SSH_DISCONNECT)
                pass

            elif la_ == 5:
                self.state = 424
                self.match(APIParser.SSH_SAVE)
                self.state = 425
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 6:
                self.state = 426
                self.match(APIParser.SSH_RESTORE)
                self.state = 427
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 7:
                self.state = 428
                self.match(APIParser.SFTP)
                self.state = 458
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [151]:
                    self.state = 429
                    self.match(APIParser.SFTP_CHMOD)
                    self.state = 430
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 431
                    self.match(APIParser.INT)
                    pass
                elif token in [152]:
                    self.state = 432
                    self.match(APIParser.SFTP_GETCWD)
                    pass
                elif token in [153]:
                    self.state = 433
                    self.match(APIParser.SFTP_CHDIR)
                    self.state = 434
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [154]:
                    self.state = 435
                    self.match(APIParser.SFTP_CHOWN)
                    self.state = 436
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 437
                    self.match(APIParser.INT)
                    self.state = 438
                    self.match(APIParser.INT)
                    pass
                elif token in [155]:
                    self.state = 439
                    self.match(APIParser.SFTP_MKDIR)
                    self.state = 440
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 441
                    self.match(APIParser.INT)
                    pass
                elif token in [156]:
                    self.state = 442
                    self.match(APIParser.SFTP_GET)
                    self.state = 443
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 444
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [157]:
                    self.state = 445
                    self.match(APIParser.SFTP_PUT)
                    self.state = 446
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 447
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [158]:
                    self.state = 448
                    self.match(APIParser.SFTP_REMOVE)
                    self.state = 449
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [159]:
                    self.state = 450
                    self.match(APIParser.SFTP_RENAME)
                    self.state = 451
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 452
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [160]:
                    self.state = 453
                    self.match(APIParser.SFTP_LISTDIR)
                    self.state = 454
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [161]:
                    self.state = 455
                    self.match(APIParser.SFTP_TRUNCATE)
                    self.state = 456
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 457
                    self.match(APIParser.INT)
                    pass
                else:
                    raise NoViableAltException(self)

                pass


            self.state = 463
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==163:
                self.state = 462
                self.match(APIParser.SSH_SEMICOLON)


            self.state = 466
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 465
                self.match(APIParser.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(APIParser.JOB, 0)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_job

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




    def job(self):

        localctx = APIParser.JobContext(self, self._ctx, self.state)
        self.enterRule(localctx, 76, self.RULE_job)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 468
            self.match(APIParser.JOB)
            self.state = 513
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [181]:
                self.state = 469
                self.match(APIParser.JOB_MANGER)
                self.state = 470
                _la = self._input.LA(1)
                if not(_la==182 or _la==183):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass
            elif token in [174]:
                self.state = 471
                self.match(APIParser.JOB_WAIT)
                self.state = 472
                self.match(APIParser.JOB_EXPRESSION)
                self.state = 476
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==185:
                    self.state = 473
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 474
                    self.match(APIParser.JOB_EQUAL)
                    self.state = 475
                    self.match(APIParser.JOB_EXPRESSION)


                pass
            elif token in [171]:
                self.state = 478
                self.match(APIParser.JOB_SHOW)
                self.state = 479
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [176]:
                self.state = 480
                self.match(APIParser.JOB_ABORT)
                self.state = 481
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [175]:
                self.state = 482
                self.match(APIParser.JOB_SHUTDOWN)
                self.state = 483
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [177]:
                self.state = 484
                self.match(APIParser.JOB_TIMER)
                self.state = 485
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [173]:
                self.state = 486
                self.match(APIParser.JOB_START)
                self.state = 487
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [179]:
                self.state = 488
                self.match(APIParser.JOB_DEREGISTER)
                self.state = 489
                self.match(APIParser.JOB_WORKER)
                pass
            elif token in [178]:
                self.state = 490
                self.match(APIParser.JOB_REGISTER)
                self.state = 491
                self.match(APIParser.JOB_WORKER)
                self.state = 492
                self.match(APIParser.JOB_TO)
                self.state = 493
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [172]:
                self.state = 494
                self.match(APIParser.JOB_SET)
                self.state = 495
                self.match(APIParser.JOB_EXPRESSION)
                self.state = 499 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 496
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 497
                    self.match(APIParser.JOB_EQUAL)
                    self.state = 498
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 501 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==185):
                        break

                pass
            elif token in [170]:
                self.state = 503
                self.match(APIParser.JOB_CREATE)
                self.state = 504
                self.match(APIParser.JOB_EXPRESSION)
                self.state = 510
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==185:
                    self.state = 505
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 506
                    self.match(APIParser.JOB_EQUAL)
                    self.state = 507
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 512
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass
            else:
                raise NoViableAltException(self)

            self.state = 516
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==167:
                self.state = 515
                self.match(APIParser.JOB_SEMICOLON)


            self.state = 519
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 518
                self.match(APIParser.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(APIParser.COMPARE, 0)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        def getRuleIndex(self):
            return APIParser.RULE_compare

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




    def compare(self):

        localctx = APIParser.CompareContext(self, self._ctx, self.state)
        self.enterRule(localctx, 78, self.RULE_compare)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 521
            self.match(APIParser.COMPARE)
            self.state = 560
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,73,self._ctx)
            if la_ == 1:
                self.state = 522
                self.match(APIParser.COMPARE_EXPRESSION)
                self.state = 523
                self.match(APIParser.COMPARE_EXPRESSION)
                self.state = 527
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 1011) != 0:
                    self.state = 524
                    _la = self._input.LA(1)
                    if not((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 1011) != 0):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 529
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 2:
                self.state = 530
                _la = self._input.LA(1)
                if not(_la==205 or _la==206):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 531
                self.match(APIParser.COMPARE_EXPRESSION)
                pass

            elif la_ == 3:
                self.state = 532
                self.match(APIParser.COMPARE_MASKLINE)
                self.state = 533
                self.match(APIParser.COMPARE_EXPRESSION)
                self.state = 534
                self.match(APIParser.COMPARE_EQUAL)
                self.state = 535
                self.match(APIParser.COMPARE_EXPRESSION)
                pass

            elif la_ == 4:
                self.state = 536
                self.match(APIParser.COMPARE_NOMASKLINE)
                self.state = 537
                self.match(APIParser.COMPARE_EXPRESSION)
                pass

            elif la_ == 5:
                self.state = 538
                self.match(APIParser.COMPARE_RESET)
                pass

            elif la_ == 6:
                self.state = 539
                self.match(APIParser.COMPARE_SET)
                self.state = 543
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 1011) != 0:
                    self.state = 540
                    _la = self._input.LA(1)
                    if not((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 1011) != 0):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 545
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 7:
                self.state = 546
                self.match(APIParser.COMPARE_SET)
                self.state = 547
                self.match(APIParser.COMPARE_OUTPUT)
                self.state = 549 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 548
                    _la = self._input.LA(1)
                    if not(_la==203 or _la==204):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 551 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==203 or _la==204):
                        break

                pass

            elif la_ == 8:
                self.state = 553
                self.match(APIParser.COMPARE_SET)
                self.state = 554
                self.match(APIParser.COMPARE_ALGORITHM)
                self.state = 555
                _la = self._input.LA(1)
                if not(_la==212 or _la==213):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass

            elif la_ == 9:
                self.state = 556
                self.match(APIParser.COMPARE_SET)
                self.state = 557
                _la = self._input.LA(1)
                if not(_la==210 or _la==211):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 558
                self.match(APIParser.COMPARE_ENCODING)
                self.state = 559
                self.match(APIParser.COMPARE_EXPRESSION)
                pass


            self.state = 563
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==187:
                self.state = 562
                self.match(APIParser.COMPARE_SEMICOLON)


            self.state = 566
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 565
                self.match(APIParser.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(APIParser.DATA, 0)

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

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

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

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

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

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

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

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

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

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

        def DATA_TO(self):
            return self.getToken(APIParser.DATA_TO, 0)

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

        def DATACOLUMN_CONTENT(self):
            return self.getToken(APIParser.DATACOLUMN_CONTENT, 0)

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

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

        def getRuleIndex(self):
            return APIParser.RULE_data

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




    def data(self):

        localctx = APIParser.DataContext(self, self._ctx, self.state)
        self.enterRule(localctx, 80, self.RULE_data)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 568
            self.match(APIParser.DATA)
            self.state = 600
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [217]:
                self.state = 569
                self.match(APIParser.DATA_SET)
                self.state = 570
                self.match(APIParser.DATA_SEEDFILE)
                self.state = 571
                self.match(APIParser.DATA_DIR)
                self.state = 572
                self.match(APIParser.DATA_EXPRESSION)
                self.state = 574
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==216:
                    self.state = 573
                    self.match(APIParser.DATA_SEMICOLON)


                pass
            elif token in [220]:
                self.state = 576
                self.match(APIParser.DATA_CREATE)
                self.state = 577
                self.match(APIParser.DATA_FILETYPE)
                self.state = 578
                self.match(APIParser.DATA_FILE)
                self.state = 579
                self.match(APIParser.DATA_EXPRESSION)
                self.state = 580
                self.match(APIParser.DATACOLUMN_OPEN)
                self.state = 582
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==232:
                    self.state = 581
                    self.match(APIParser.DATACOLUMN_CONTENT)


                self.state = 586
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==223:
                    self.state = 584
                    self.match(APIParser.DATA_ROWS)
                    self.state = 585
                    self.match(APIParser.DATA_INT)


                self.state = 588
                self.match(APIParser.DATA_SEMICOLON)
                pass
            elif token in [227]:
                self.state = 589
                self.match(APIParser.DATA_CONVERT)
                self.state = 590
                self.match(APIParser.DATA_FILETYPE)
                self.state = 591
                self.match(APIParser.DATA_FILE)
                self.state = 592
                self.match(APIParser.DATA_EXPRESSION)
                self.state = 593
                self.match(APIParser.DATA_TO)
                self.state = 594
                self.match(APIParser.DATA_FILETYPE)
                self.state = 595
                self.match(APIParser.DATA_FILE)
                self.state = 596
                self.match(APIParser.DATA_EXPRESSION)
                self.state = 598
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==216:
                    self.state = 597
                    self.match(APIParser.DATA_SEMICOLON)


                pass
            else:
                raise NoViableAltException(self)

            self.state = 603
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 602
                self.match(APIParser.CRLF)


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


    class HelpContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def HELP(self):
            return self.getToken(APIParser.HELP, 0)

        def HELP_COMMAND(self):
            return self.getToken(APIParser.HELP_COMMAND, 0)

        def HELP_SEMICOLON(self):
            return self.getToken(APIParser.HELP_SEMICOLON, 0)

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

        def getRuleIndex(self):
            return APIParser.RULE_help

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




    def help_(self):

        localctx = APIParser.HelpContext(self, self._ctx, self.state)
        self.enterRule(localctx, 82, self.RULE_help)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 605
            self.match(APIParser.HELP)
            self.state = 607
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==234:
                self.state = 606
                self.match(APIParser.HELP_COMMAND)


            self.state = 610
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==236:
                self.state = 609
                self.match(APIParser.HELP_SEMICOLON)


            self.state = 613
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==6:
                self.state = 612
                self.match(APIParser.CRLF)


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


    class MonitorContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def MONITOR(self):
            return self.getToken(APIParser.MONITOR, 0)

        def MONITOR_SEMICOLON(self):
            return self.getToken(APIParser.MONITOR_SEMICOLON, 0)

        def MONITOR_CRLF(self):
            return self.getToken(APIParser.MONITOR_CRLF, 0)

        def MONITOR_MANAGER(self):
            return self.getToken(APIParser.MONITOR_MANAGER, 0)

        def MONITOR_ON(self):
            return self.getToken(APIParser.MONITOR_ON, 0)

        def MONITOR_OFF(self):
            return self.getToken(APIParser.MONITOR_OFF, 0)

        def MONITOR_CREATE(self):
            return self.getToken(APIParser.MONITOR_CREATE, 0)

        def MONITOR_TASK(self):
            return self.getToken(APIParser.MONITOR_TASK, 0)

        def MONITOR_START(self):
            return self.getToken(APIParser.MONITOR_START, 0)

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

        def MONITOR_STOP(self):
            return self.getToken(APIParser.MONITOR_STOP, 0)

        def MONITOR_REPORT(self):
            return self.getToken(APIParser.MONITOR_REPORT, 0)

        def MONITOR_LIST(self):
            return self.getToken(APIParser.MONITOR_LIST, 0)

        def MONITOR_WORKERS(self):
            return self.getToken(APIParser.MONITOR_WORKERS, 0)

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

        def getRuleIndex(self):
            return APIParser.RULE_monitor

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




    def monitor(self):

        localctx = APIParser.MonitorContext(self, self._ctx, self.state)
        self.enterRule(localctx, 84, self.RULE_monitor)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 615
            self.match(APIParser.MONITOR)
            self.state = 647
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,88,self._ctx)
            if la_ == 1:
                self.state = 616
                self.match(APIParser.MONITOR_MANAGER)
                self.state = 617
                self.match(APIParser.MONITOR_ON)
                self.state = 620
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==239:
                    self.state = 618
                    self.match(APIParser.MONITOR_WORKERS)
                    self.state = 619
                    self.match(APIParser.MONITOR_EXPRESSION)


                pass

            elif la_ == 2:
                self.state = 622
                self.match(APIParser.MONITOR_MANAGER)
                self.state = 623
                self.match(APIParser.MONITOR_OFF)
                pass

            elif la_ == 3:
                self.state = 624
                self.match(APIParser.MONITOR_CREATE)
                self.state = 625
                self.match(APIParser.MONITOR_TASK)

                self.state = 627
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,86,self._ctx)
                if la_ == 1:
                    self.state = 626
                    self.match(APIParser.MONITOR_EXPRESSION)


                self.state = 632 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 629
                    self.match(APIParser.MONITOR_EXPRESSION)
                    self.state = 630
                    self.match(APIParser.MONITOR_EQUAL)
                    self.state = 631
                    self.match(APIParser.MONITOR_EXPRESSION)
                    self.state = 634 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==249):
                        break

                pass

            elif la_ == 4:
                self.state = 636
                self.match(APIParser.MONITOR_START)
                self.state = 637
                self.match(APIParser.MONITOR_TASK)
                self.state = 638
                self.match(APIParser.MONITOR_EXPRESSION)
                pass

            elif la_ == 5:
                self.state = 639
                self.match(APIParser.MONITOR_STOP)
                self.state = 640
                self.match(APIParser.MONITOR_TASK)
                self.state = 641
                self.match(APIParser.MONITOR_EXPRESSION)
                pass

            elif la_ == 6:
                self.state = 642
                self.match(APIParser.MONITOR_REPORT)
                self.state = 643
                self.match(APIParser.MONITOR_TASK)
                self.state = 644
                self.match(APIParser.MONITOR_EXPRESSION)
                pass

            elif la_ == 7:
                self.state = 645
                self.match(APIParser.MONITOR_LIST)
                self.state = 646
                self.match(APIParser.MONITOR_TASK)
                pass


            self.state = 650
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==251:
                self.state = 649
                self.match(APIParser.MONITOR_SEMICOLON)


            self.state = 653
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==250:
                self.state = 652
                self.match(APIParser.MONITOR_CRLF)


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





