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

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>", "<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>", "<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'", "'SAVE'", 
                     "'RESTORE'", "'SFTP'", "'CHMOD'", "'GETCWD'", "'CHDIR'", 
                     "'CHOWN'", "'MKDIR'", "'GET'", "'PUT'", "'REMOVE'", 
                     "'RENAME'", "'LISTDIR'", "'TRUNCATE'", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "'SHOW'", "<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", "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", "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_http = 3
    RULE_httpMessage = 4
    RULE_httpRequestLine = 5
    RULE_httpMethod = 6
    RULE_httpRequestTarget = 7
    RULE_httpHeaderFields = 8
    RULE_httpHeaderField = 9
    RULE_httpHeaderFieldName = 10
    RULE_httpHeaderFieldValue = 11
    RULE_httpMessageBody = 12
    RULE_httpMultipart = 13
    RULE_httpMultipartBoundary = 14
    RULE_httpBoundaryDelimiter = 15
    RULE_httpMessageBodyContent = 16
    RULE_httpMessageBodyOperate = 17
    RULE_httpMessageBodyOther = 18
    RULE_baseCommand = 19
    RULE_exit = 20
    RULE_quit = 21
    RULE_use = 22
    RULE_sleep = 23
    RULE_start = 24
    RULE_load = 25
    RULE_assert = 26
    RULE_host = 27
    RULE_loop = 28
    RULE_if = 29
    RULE_endif = 30
    RULE_whenever = 31
    RULE_spool = 32
    RULE_echo = 33
    RULE_script = 34
    RULE_set = 35
    RULE_ssh = 36
    RULE_job = 37
    RULE_compare = 38
    RULE_data = 39
    RULE_help = 40
    RULE_monitor = 41

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

    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 = 84
            self.command()
            self.state = 85
            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 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 = 91
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41]:
                self.enterOuterAlt(localctx, 1)
                self.state = 87
                self.baseCommand()
                pass
            elif token in [4]:
                self.enterOuterAlt(localctx, 2)
                self.state = 88
                self.apiset()
                pass
            elif token in [1]:
                self.enterOuterAlt(localctx, 3)
                self.state = 89
                self.http()
                pass
            elif token in [-1]:
                self.enterOuterAlt(localctx, 4)
                self.state = 90
                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 = 93
            self.match(APIParser.APISET)
            self.state = 99
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [63]:
                self.state = 94
                self.match(APIParser.APISET_PROXY)
                self.state = 95
                self.match(APIParser.APISET_EXPRESSION)
                pass
            elif token in [64]:
                self.state = 96
                self.match(APIParser.APISET_HTTPSVERIFY)
                self.state = 97
                _la = self._input.LA(1)
                if not(_la==65 or _la==66):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass
            elif token in [-1, 68]:
                pass
            else:
                raise NoViableAltException(self)

            self.state = 102
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==68:
                self.state = 101
                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 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, 6, self.RULE_http)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 104
            self.match(APIParser.HTTP_OPEN)
            self.state = 108
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==5:
                self.state = 105
                self.match(APIParser.CRLF)
                self.state = 110
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 111
            self.httpMessage()
            self.state = 112
            _la = self._input.LA(1)
            if not(_la==-1 or _la==49):
                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, 8, self.RULE_httpMessage)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 114
            self.httpRequestLine()
            self.state = 115
            self.httpHeaderFields()
            self.state = 117
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if ((_la) & ~0x3f) == 0 and ((1 << _la) & 2882321353703161888) != 0:
                self.state = 116
                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, 10, self.RULE_httpRequestLine)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 119
            self.httpMethod()
            self.state = 120
            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, 12, self.RULE_httpMethod)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 122
            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, 14, self.RULE_httpRequestTarget)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 124
            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, 16, self.RULE_httpHeaderFields)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 129
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==53:
                self.state = 126
                self.httpHeaderField()
                self.state = 131
                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, 18, self.RULE_httpHeaderField)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 132
            self.httpHeaderFieldName()
            self.state = 133
            self.match(APIParser.FIELD_COLON)
            self.state = 134
            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, 20, self.RULE_httpHeaderFieldName)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 136
            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, 22, self.RULE_httpHeaderFieldValue)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 138
            self.match(APIParser.HttpHeaderFieldValue)
            self.state = 139
            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, 24, self.RULE_httpMessageBody)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 143 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 143
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [59]:
                    self.state = 141
                    self.httpMultipart()
                    pass
                elif token in [5, 44, 61]:
                    self.state = 142
                    self.httpMessageBodyContent()
                    pass
                else:
                    raise NoViableAltException(self)

                self.state = 145 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (((_la) & ~0x3f) == 0 and ((1 << _la) & 2882321353703161888) != 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, 26, self.RULE_httpMultipart)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 148 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 147
                self.httpMultipartBoundary()
                self.state = 150 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==59):
                    break

            self.state = 152
            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, 28, self.RULE_httpMultipartBoundary)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 154
            self.httpBoundaryDelimiter()
            self.state = 155
            self.httpHeaderFields()
            self.state = 156
            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, 30, self.RULE_httpBoundaryDelimiter)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 158
            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, 32, self.RULE_httpMessageBodyContent)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 162 
            self._errHandler.sync(self)
            _alt = 1
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt == 1:
                    self.state = 162
                    self._errHandler.sync(self)
                    token = self._input.LA(1)
                    if token in [61]:
                        self.state = 160
                        self.httpMessageBodyOperate()
                        pass
                    elif token in [5, 44]:
                        self.state = 161
                        self.httpMessageBodyOther()
                        pass
                    else:
                        raise NoViableAltException(self)


                else:
                    raise NoViableAltException(self)
                self.state = 164 
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,10,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, 34, self.RULE_httpMessageBodyOperate)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 166
            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, 36, self.RULE_httpMessageBodyOther)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 169 
            self._errHandler.sync(self)
            _alt = 1
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt == 1:
                    self.state = 168
                    _la = self._input.LA(1)
                    if not(_la==5 or _la==44):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()

                else:
                    raise NoViableAltException(self)
                self.state = 171 
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,11,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, 38, self.RULE_baseCommand)
        try:
            self.state = 195
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [27]:
                self.enterOuterAlt(localctx, 1)
                self.state = 173
                self.assert_()
                pass
            elif token in [29]:
                self.enterOuterAlt(localctx, 2)
                self.state = 174
                self.load()
                pass
            elif token in [30]:
                self.enterOuterAlt(localctx, 3)
                self.state = 175
                self.host()
                pass
            elif token in [28]:
                self.enterOuterAlt(localctx, 4)
                self.state = 176
                self.start()
                pass
            elif token in [35]:
                self.enterOuterAlt(localctx, 5)
                self.state = 177
                self.loop()
                pass
            elif token in [32]:
                self.enterOuterAlt(localctx, 6)
                self.state = 178
                self.if_()
                pass
            elif token in [33]:
                self.enterOuterAlt(localctx, 7)
                self.state = 179
                self.endif()
                pass
            elif token in [36]:
                self.enterOuterAlt(localctx, 8)
                self.state = 180
                self.whenever()
                pass
            elif token in [34]:
                self.enterOuterAlt(localctx, 9)
                self.state = 181
                self.set_()
                pass
            elif token in [24]:
                self.enterOuterAlt(localctx, 10)
                self.state = 182
                self.use()
                pass
            elif token in [20]:
                self.enterOuterAlt(localctx, 11)
                self.state = 183
                self.exit()
                pass
            elif token in [21]:
                self.enterOuterAlt(localctx, 12)
                self.state = 184
                self.quit()
                pass
            elif token in [23]:
                self.enterOuterAlt(localctx, 13)
                self.state = 185
                self.sleep()
                pass
            elif token in [22]:
                self.enterOuterAlt(localctx, 14)
                self.state = 186
                self.spool()
                pass
            elif token in [26]:
                self.enterOuterAlt(localctx, 15)
                self.state = 187
                self.script()
                pass
            elif token in [25]:
                self.enterOuterAlt(localctx, 16)
                self.state = 188
                self.echo()
                pass
            elif token in [37]:
                self.enterOuterAlt(localctx, 17)
                self.state = 189
                self.ssh()
                pass
            elif token in [38]:
                self.enterOuterAlt(localctx, 18)
                self.state = 190
                self.job()
                pass
            elif token in [39]:
                self.enterOuterAlt(localctx, 19)
                self.state = 191
                self.compare()
                pass
            elif token in [40]:
                self.enterOuterAlt(localctx, 20)
                self.state = 192
                self.data()
                pass
            elif token in [31]:
                self.enterOuterAlt(localctx, 21)
                self.state = 193
                self.help_()
                pass
            elif token in [41]:
                self.enterOuterAlt(localctx, 22)
                self.state = 194
                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, 40, self.RULE_exit)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 197
            self.match(APIParser.EXIT)
            self.state = 199
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==42:
                self.state = 198
                self.match(APIParser.INT)


            self.state = 202
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 201
                self.match(APIParser.SEMICOLON)


            self.state = 205
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 204
                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, 42, self.RULE_quit)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 207
            self.match(APIParser.QUIT)
            self.state = 209
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==42:
                self.state = 208
                self.match(APIParser.INT)


            self.state = 212
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 211
                self.match(APIParser.SEMICOLON)


            self.state = 215
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 214
                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, 44, self.RULE_use)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 217
            self.match(APIParser.USE)
            self.state = 218
            _la = self._input.LA(1)
            if not(_la==127 or _la==128):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 220
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==130:
                self.state = 219
                self.match(APIParser.USE_SEMICOLON)


            self.state = 223
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                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 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, 46, self.RULE_sleep)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 225
            self.match(APIParser.SLEEP)
            self.state = 226
            self.match(APIParser.INT)
            self.state = 228
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 227
                self.match(APIParser.SEMICOLON)


            self.state = 231
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 230
                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, 48, self.RULE_start)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 233
            self.match(APIParser.START)
            self.state = 235 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 234
                self.match(APIParser.START_EXPRESSION)
                self.state = 237 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==94):
                    break

            self.state = 240
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 239
                self.match(APIParser.SEMICOLON)


            self.state = 243
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 242
                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, 50, self.RULE_load)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 245
            self.match(APIParser.LOAD)
            self.state = 271
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [82]:
                self.state = 246
                self.match(APIParser.LOAD_PLUGIN)
                self.state = 247
                self.match(APIParser.LOAD_EXPRESSION)
                pass
            elif token in [83]:
                self.state = 248
                self.match(APIParser.LOAD_MAP)
                self.state = 249
                self.match(APIParser.LOAD_EXPRESSION)
                pass
            elif token in [84]:
                self.state = 250
                self.match(APIParser.LOAD_JDBCDRIVER)
                self.state = 268
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 85)) & ~0x3f) == 0 and ((1 << (_la - 85)) & 31) != 0:
                    self.state = 266
                    self._errHandler.sync(self)
                    token = self._input.LA(1)
                    if token in [86]:
                        self.state = 251
                        self.match(APIParser.LOAD_JDBCCLASS)
                        self.state = 252
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 253
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [85]:
                        self.state = 254
                        self.match(APIParser.LOAD_JDBCFILE)
                        self.state = 255
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 256
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [87]:
                        self.state = 257
                        self.match(APIParser.LOAD_JDBCNAME)
                        self.state = 258
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 259
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [88]:
                        self.state = 260
                        self.match(APIParser.LOAD_JDBCPROP)
                        self.state = 261
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 262
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [89]:
                        self.state = 263
                        self.match(APIParser.LOAD_JDBCURL)
                        self.state = 264
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 265
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    else:
                        raise NoViableAltException(self)

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

                pass
            else:
                raise NoViableAltException(self)

            self.state = 274
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==91:
                self.state = 273
                self.match(APIParser.LOAD_SEMICOLON)


            self.state = 277
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 276
                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, 52, self.RULE_assert)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 279
            self.match(APIParser.ASSERT)
            self.state = 280
            self.match(APIParser.ASSERT_EXPRESSION)
            self.state = 285
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==77 or _la==78:
                self.state = 282
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==78:
                    self.state = 281
                    self.match(APIParser.ASSERT_COMMA)


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


            self.state = 288
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==79:
                self.state = 287
                self.match(APIParser.ASSERT_SEMICOLON)


            self.state = 291
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 290
                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, 54, self.RULE_host)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 293
            self.match(APIParser.HOST)
            self.state = 294
            self.match(APIParser.HOST_EXPRESSION)
            self.state = 296
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 295
                self.match(APIParser.SEMICOLON)


            self.state = 299
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 298
                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, 56, self.RULE_loop)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 301
            self.match(APIParser.LOOP)
            self.state = 315
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [111]:
                self.state = 302
                self.match(APIParser.LOOP_BREAK)
                pass
            elif token in [112]:
                self.state = 303
                self.match(APIParser.LOOP_END)
                pass
            elif token in [113]:
                self.state = 304
                self.match(APIParser.LOOP_CONTINUE)
                pass
            elif token in [105]:
                self.state = 305
                self.match(APIParser.LOOP_BEGIN)
                self.state = 306
                self.match(APIParser.LOOP_UNTIL)
                self.state = 307
                self.match(APIParser.LOOP_EXPRESSION)
                pass
            elif token in [106, 108]:
                self.state = 309
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==108:
                    self.state = 308
                    self.match(APIParser.LOOP_INT)


                self.state = 311
                self.match(APIParser.LOOP_UNTIL)
                self.state = 312
                self.match(APIParser.LOOP_EXPRESSION)
                self.state = 313
                self.match(APIParser.LOOP_INTERVAL)
                self.state = 314
                self.match(APIParser.LOOP_INT)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 318
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==103:
                self.state = 317
                self.match(APIParser.LOOP_SEMICOLON)


            self.state = 321
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 320
                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, 58, self.RULE_if)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 323
            self.match(APIParser.IF)
            self.state = 324
            self.match(APIParser.IF_EXPRESSION)
            self.state = 326
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 325
                self.match(APIParser.SEMICOLON)


            self.state = 329
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 328
                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, 60, self.RULE_endif)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 331
            self.match(APIParser.ENDIF)
            self.state = 333
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 332
                self.match(APIParser.SEMICOLON)


            self.state = 336
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 335
                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, 62, self.RULE_whenever)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 338
            self.match(APIParser.WHENEVER)
            self.state = 339
            self.match(APIParser.WHENEVER_ERROR)
            self.state = 343
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [120]:
                self.state = 340
                self.match(APIParser.WHENEVER_CONTINUE)
                pass
            elif token in [121]:
                self.state = 341
                self.match(APIParser.WHENEVER_EXIT)
                self.state = 342
                self.match(APIParser.WHENEVER_EXITCODE)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 346
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==119:
                self.state = 345
                self.match(APIParser.WHENEVER_SEMICOLON)


            self.state = 349
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 348
                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, 64, self.RULE_spool)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 351
            self.match(APIParser.SPOOL)
            self.state = 352
            self.match(APIParser.String)
            self.state = 354
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 353
                self.match(APIParser.SEMICOLON)


            self.state = 357
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 356
                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, 66, self.RULE_echo)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 359
            self.match(APIParser.ECHO)
            self.state = 360
            self.match(APIParser.EchoBlock)
            self.state = 362
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,50,self._ctx)
            if la_ == 1:
                self.state = 361
                _la = self._input.LA(1)
                if not(_la==-1 or _la==5):
                    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, 68, self.RULE_script)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 364
            self.match(APIParser.SCRIPT)
            self.state = 365
            self.match(APIParser.ScriptBlock)
            self.state = 367
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                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 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, 70, self.RULE_set)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 369
            self.match(APIParser.SET)
            self.state = 373
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==124:
                self.state = 370
                self.match(APIParser.SET_EXPRESSION)
                self.state = 375
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 377
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==125:
                self.state = 376
                self.match(APIParser.SET_SEMICOLON)


            self.state = 380
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 379
                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, 72, self.RULE_ssh)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 382
            self.match(APIParser.SSH)
            self.state = 442
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,58,self._ctx)
            if la_ == 1:
                self.state = 383
                self.match(APIParser.SSH_CONNECT)
                self.state = 384
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 385
                self.match(APIParser.SSH_WITH)
                self.state = 386
                self.match(APIParser.SSH_USER)
                self.state = 387
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 388
                self.match(APIParser.SSH_KEYFILE)
                self.state = 389
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 2:
                self.state = 390
                self.match(APIParser.SSH_CONNECT)
                self.state = 391
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 392
                self.match(APIParser.SSH_WITH)
                self.state = 393
                self.match(APIParser.SSH_USER)
                self.state = 394
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 397
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==136:
                    self.state = 395
                    self.match(APIParser.SSH_PASSWORD)
                    self.state = 396
                    self.match(APIParser.SSH_EXPRESSION)


                pass

            elif la_ == 3:
                self.state = 399
                self.match(APIParser.SSH_EXECUTE)
                self.state = 401 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 400
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 403 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==156):
                        break

                pass

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

            elif la_ == 5:
                self.state = 406
                self.match(APIParser.SSH_SAVE)
                self.state = 407
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 6:
                self.state = 408
                self.match(APIParser.SSH_RESTORE)
                self.state = 409
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 7:
                self.state = 410
                self.match(APIParser.SFTP)
                self.state = 440
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [142]:
                    self.state = 411
                    self.match(APIParser.SFTP_CHMOD)
                    self.state = 412
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 413
                    self.match(APIParser.INT)
                    pass
                elif token in [143]:
                    self.state = 414
                    self.match(APIParser.SFTP_GETCWD)
                    pass
                elif token in [144]:
                    self.state = 415
                    self.match(APIParser.SFTP_CHDIR)
                    self.state = 416
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [145]:
                    self.state = 417
                    self.match(APIParser.SFTP_CHOWN)
                    self.state = 418
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 419
                    self.match(APIParser.INT)
                    self.state = 420
                    self.match(APIParser.INT)
                    pass
                elif token in [146]:
                    self.state = 421
                    self.match(APIParser.SFTP_MKDIR)
                    self.state = 422
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 423
                    self.match(APIParser.INT)
                    pass
                elif token in [147]:
                    self.state = 424
                    self.match(APIParser.SFTP_GET)
                    self.state = 425
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 426
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [148]:
                    self.state = 427
                    self.match(APIParser.SFTP_PUT)
                    self.state = 428
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 429
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [149]:
                    self.state = 430
                    self.match(APIParser.SFTP_REMOVE)
                    self.state = 431
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [150]:
                    self.state = 432
                    self.match(APIParser.SFTP_RENAME)
                    self.state = 433
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 434
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [151]:
                    self.state = 435
                    self.match(APIParser.SFTP_LISTDIR)
                    self.state = 436
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [152]:
                    self.state = 437
                    self.match(APIParser.SFTP_TRUNCATE)
                    self.state = 438
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 439
                    self.match(APIParser.INT)
                    pass
                else:
                    raise NoViableAltException(self)

                pass


            self.state = 445
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==154:
                self.state = 444
                self.match(APIParser.SSH_SEMICOLON)


            self.state = 448
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 447
                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, 74, self.RULE_job)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 450
            self.match(APIParser.JOB)
            self.state = 495
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [172]:
                self.state = 451
                self.match(APIParser.JOB_MANGER)
                self.state = 452
                _la = self._input.LA(1)
                if not(_la==173 or _la==174):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass
            elif token in [165]:
                self.state = 453
                self.match(APIParser.JOB_WAIT)
                self.state = 454
                self.match(APIParser.JOB_EXPRESSION)
                self.state = 458
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==176:
                    self.state = 455
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 456
                    self.match(APIParser.JOB_EQUAL)
                    self.state = 457
                    self.match(APIParser.JOB_EXPRESSION)


                pass
            elif token in [162]:
                self.state = 460
                self.match(APIParser.JOB_SHOW)
                self.state = 461
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [167]:
                self.state = 462
                self.match(APIParser.JOB_ABORT)
                self.state = 463
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [166]:
                self.state = 464
                self.match(APIParser.JOB_SHUTDOWN)
                self.state = 465
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [168]:
                self.state = 466
                self.match(APIParser.JOB_TIMER)
                self.state = 467
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [164]:
                self.state = 468
                self.match(APIParser.JOB_START)
                self.state = 469
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [170]:
                self.state = 470
                self.match(APIParser.JOB_DEREGISTER)
                self.state = 471
                self.match(APIParser.JOB_WORKER)
                pass
            elif token in [169]:
                self.state = 472
                self.match(APIParser.JOB_REGISTER)
                self.state = 473
                self.match(APIParser.JOB_WORKER)
                self.state = 474
                self.match(APIParser.JOB_TO)
                self.state = 475
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [163]:
                self.state = 476
                self.match(APIParser.JOB_SET)
                self.state = 477
                self.match(APIParser.JOB_EXPRESSION)
                self.state = 481 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 478
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 479
                    self.match(APIParser.JOB_EQUAL)
                    self.state = 480
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 483 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==176):
                        break

                pass
            elif token in [161]:
                self.state = 485
                self.match(APIParser.JOB_CREATE)
                self.state = 486
                self.match(APIParser.JOB_EXPRESSION)
                self.state = 492
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==176:
                    self.state = 487
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 488
                    self.match(APIParser.JOB_EQUAL)
                    self.state = 489
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 494
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass
            else:
                raise NoViableAltException(self)

            self.state = 498
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==158:
                self.state = 497
                self.match(APIParser.JOB_SEMICOLON)


            self.state = 501
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 500
                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, 76, self.RULE_compare)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 503
            self.match(APIParser.COMPARE)
            self.state = 542
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,70,self._ctx)
            if la_ == 1:
                self.state = 504
                self.match(APIParser.COMPARE_EXPRESSION)
                self.state = 505
                self.match(APIParser.COMPARE_EXPRESSION)
                self.state = 509
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 183)) & ~0x3f) == 0 and ((1 << (_la - 183)) & 1011) != 0:
                    self.state = 506
                    _la = self._input.LA(1)
                    if not((((_la - 183)) & ~0x3f) == 0 and ((1 << (_la - 183)) & 1011) != 0):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 511
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 2:
                self.state = 512
                _la = self._input.LA(1)
                if not(_la==196 or _la==197):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 513
                self.match(APIParser.COMPARE_EXPRESSION)
                pass

            elif la_ == 3:
                self.state = 514
                self.match(APIParser.COMPARE_MASKLINE)
                self.state = 515
                self.match(APIParser.COMPARE_EXPRESSION)
                self.state = 516
                self.match(APIParser.COMPARE_EQUAL)
                self.state = 517
                self.match(APIParser.COMPARE_EXPRESSION)
                pass

            elif la_ == 4:
                self.state = 518
                self.match(APIParser.COMPARE_NOMASKLINE)
                self.state = 519
                self.match(APIParser.COMPARE_EXPRESSION)
                pass

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

            elif la_ == 6:
                self.state = 521
                self.match(APIParser.COMPARE_SET)
                self.state = 525
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 183)) & ~0x3f) == 0 and ((1 << (_la - 183)) & 1011) != 0:
                    self.state = 522
                    _la = self._input.LA(1)
                    if not((((_la - 183)) & ~0x3f) == 0 and ((1 << (_la - 183)) & 1011) != 0):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 527
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 7:
                self.state = 528
                self.match(APIParser.COMPARE_SET)
                self.state = 529
                self.match(APIParser.COMPARE_OUTPUT)
                self.state = 531 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 530
                    _la = self._input.LA(1)
                    if not(_la==194 or _la==195):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 533 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==194 or _la==195):
                        break

                pass

            elif la_ == 8:
                self.state = 535
                self.match(APIParser.COMPARE_SET)
                self.state = 536
                self.match(APIParser.COMPARE_ALGORITHM)
                self.state = 537
                _la = self._input.LA(1)
                if not(_la==203 or _la==204):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass

            elif la_ == 9:
                self.state = 538
                self.match(APIParser.COMPARE_SET)
                self.state = 539
                _la = self._input.LA(1)
                if not(_la==201 or _la==202):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 540
                self.match(APIParser.COMPARE_ENCODING)
                self.state = 541
                self.match(APIParser.COMPARE_EXPRESSION)
                pass


            self.state = 545
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==178:
                self.state = 544
                self.match(APIParser.COMPARE_SEMICOLON)


            self.state = 548
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 547
                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, 78, self.RULE_data)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 550
            self.match(APIParser.DATA)
            self.state = 582
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [208]:
                self.state = 551
                self.match(APIParser.DATA_SET)
                self.state = 552
                self.match(APIParser.DATA_SEEDFILE)
                self.state = 553
                self.match(APIParser.DATA_DIR)
                self.state = 554
                self.match(APIParser.DATA_EXPRESSION)
                self.state = 556
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==207:
                    self.state = 555
                    self.match(APIParser.DATA_SEMICOLON)


                pass
            elif token in [211]:
                self.state = 558
                self.match(APIParser.DATA_CREATE)
                self.state = 559
                self.match(APIParser.DATA_FILETYPE)
                self.state = 560
                self.match(APIParser.DATA_FILE)
                self.state = 561
                self.match(APIParser.DATA_EXPRESSION)
                self.state = 562
                self.match(APIParser.DATACOLUMN_OPEN)
                self.state = 564
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==223:
                    self.state = 563
                    self.match(APIParser.DATACOLUMN_CONTENT)


                self.state = 568
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==214:
                    self.state = 566
                    self.match(APIParser.DATA_ROWS)
                    self.state = 567
                    self.match(APIParser.DATA_INT)


                self.state = 570
                self.match(APIParser.DATA_SEMICOLON)
                pass
            elif token in [218]:
                self.state = 571
                self.match(APIParser.DATA_CONVERT)
                self.state = 572
                self.match(APIParser.DATA_FILETYPE)
                self.state = 573
                self.match(APIParser.DATA_FILE)
                self.state = 574
                self.match(APIParser.DATA_EXPRESSION)
                self.state = 575
                self.match(APIParser.DATA_TO)
                self.state = 576
                self.match(APIParser.DATA_FILETYPE)
                self.state = 577
                self.match(APIParser.DATA_FILE)
                self.state = 578
                self.match(APIParser.DATA_EXPRESSION)
                self.state = 580
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==207:
                    self.state = 579
                    self.match(APIParser.DATA_SEMICOLON)


                pass
            else:
                raise NoViableAltException(self)

            self.state = 585
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 584
                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, 80, self.RULE_help)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 587
            self.match(APIParser.HELP)
            self.state = 589
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==225:
                self.state = 588
                self.match(APIParser.HELP_COMMAND)


            self.state = 592
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==227:
                self.state = 591
                self.match(APIParser.HELP_SEMICOLON)


            self.state = 595
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 594
                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, 82, self.RULE_monitor)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 597
            self.match(APIParser.MONITOR)
            self.state = 629
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,85,self._ctx)
            if la_ == 1:
                self.state = 598
                self.match(APIParser.MONITOR_MANAGER)
                self.state = 599
                self.match(APIParser.MONITOR_ON)
                self.state = 602
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==230:
                    self.state = 600
                    self.match(APIParser.MONITOR_WORKERS)
                    self.state = 601
                    self.match(APIParser.MONITOR_EXPRESSION)


                pass

            elif la_ == 2:
                self.state = 604
                self.match(APIParser.MONITOR_MANAGER)
                self.state = 605
                self.match(APIParser.MONITOR_OFF)
                pass

            elif la_ == 3:
                self.state = 606
                self.match(APIParser.MONITOR_CREATE)
                self.state = 607
                self.match(APIParser.MONITOR_TASK)

                self.state = 609
                self._errHandler.sync(self)
                la_ = self._interp.adaptivePredict(self._input,83,self._ctx)
                if la_ == 1:
                    self.state = 608
                    self.match(APIParser.MONITOR_EXPRESSION)


                self.state = 614 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 611
                    self.match(APIParser.MONITOR_EXPRESSION)
                    self.state = 612
                    self.match(APIParser.MONITOR_EQUAL)
                    self.state = 613
                    self.match(APIParser.MONITOR_EXPRESSION)
                    self.state = 616 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==240):
                        break

                pass

            elif la_ == 4:
                self.state = 618
                self.match(APIParser.MONITOR_START)
                self.state = 619
                self.match(APIParser.MONITOR_TASK)
                self.state = 620
                self.match(APIParser.MONITOR_EXPRESSION)
                pass

            elif la_ == 5:
                self.state = 621
                self.match(APIParser.MONITOR_STOP)
                self.state = 622
                self.match(APIParser.MONITOR_TASK)
                self.state = 623
                self.match(APIParser.MONITOR_EXPRESSION)
                pass

            elif la_ == 6:
                self.state = 624
                self.match(APIParser.MONITOR_REPORT)
                self.state = 625
                self.match(APIParser.MONITOR_TASK)
                self.state = 626
                self.match(APIParser.MONITOR_EXPRESSION)
                pass

            elif la_ == 7:
                self.state = 627
                self.match(APIParser.MONITOR_LIST)
                self.state = 628
                self.match(APIParser.MONITOR_TASK)
                pass


            self.state = 632
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==242:
                self.state = 631
                self.match(APIParser.MONITOR_SEMICOLON)


            self.state = 635
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==241:
                self.state = 634
                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





