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

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'", "'_IF'", 
                     "'_ENDIF'", "'_SET'", "'_LOOP'", "'_WHENEVER'", "'_SSH'", 
                     "'_JOB'", "'_COMPARE'", "'_DATA'", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'###'", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'PLUGIN'", 
                     "'MAP'", "'JDBCDRIVER'", "<INVALID>", "'CLASS'", "'NAME'", 
                     "'PROPS'", "'URL'", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'BEGIN'", "'UNTIL'", 
                     "<INVALID>", "<INVALID>", "'BREAK'", "'END'", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "'ERROR'", "<INVALID>", "<INVALID>", "'EXIT'", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'API'", "'SQL'", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'CONNECT'", "'WITH'", "'USER'", "'KEYFILE'", 
                     "'PASSWORD'", "'EXECUTE'", "'DISCONNECT'", "'SAVE'", 
                     "'RESTORE'", "<INVALID>", "'SFTP'", "'CHMOD'", "'GETCWD'", 
                     "'CHDIR'", "'CHOWN'", "'MKDIR'", "'GET'", "'PUT'", 
                     "'REMOVE'", "'RENAME'", "'LISTDIR'", "'TRUNCATE'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'SHOW'", "<INVALID>", "'START'", "'WAIT'", 
                     "'SHUTDOWN'", "'ABORT'", "'TIMER'", "'REGISTER'", "'DEREGISTER'", 
                     "'WORKER'", "'JOBMANAGER'", "'ON'", "'OFF'", "'TO'", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "'=>'", "<INVALID>", 
                     "<INVALID>", "'UNSET'", "'MASK'", "'NOMASK'", "'MASKLINE'", 
                     "'NOMASKLINE'", "'CASE'", "'NOCASE'", "'IGBLANK'", 
                     "'NOIGBLANK'", "'TRIM'", "'NOTRIM'", "'OUTPUT'", "'CONSOLE'", 
                     "'DIFFFILE'", "'SKIPLINE'", "'NOSKIPLINE'", "'RESET'", 
                     "'ALGORITHM'", "'ENCODING'", "'WORK'", "'REFERENCE'", 
                     "'LCS'", "'MYERS'", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'SEEDFILE'", "'DIR'", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'ROWS'", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "'CONVERT'", "'FROM'" ]

    symbolicNames = [ "<INVALID>", "HTTP_OPEN", "SCRIPT_OPEN", "COMMENT1", 
                      "COMMENT2", "CRLF", "COMMA", "SEMICOLON", "COLON", 
                      "AT", "DOT", "SLASH", "BRACKET_OPEN", "BRACKET_CLOSE", 
                      "SQUARE_OPEN", "SQUARE_CLOSE", "DOUBLE_QUOTE", "SINGLE_QUOTE", 
                      "ESCAPE", "SPACE", "EXIT", "QUIT", "SPOOL", "SLEEP", 
                      "USE", "ECHO_OPEN", "ASSERT", "START", "LOAD", "HOST", 
                      "IF", "ENDIF", "SET", "LOOP", "WHENEVER", "SSH", "JOB", 
                      "COMPARE", "DATA", "INT", "DECIMAL", "String", "HTTP_COMMENT", 
                      "DIVIDE", "SP", "HttpMethod", "HTTP_CLOSE", "HttpRequestTarget", 
                      "HttpHeaderFieldName", "FIELD_COLON", "FIELD_CRLF", 
                      "HttpHeaderFieldValue", "HttpHeaderFieldValueEnd", 
                      "HttpMultipartBoundaryEnd", "HttpMultipartBoundary", 
                      "HttpMessageBodyComment", "HttpMessageBodyOperate", 
                      "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_CRLF", "START_SPACE", "START_EXPRESSION", 
                      "START_CRLF", "HOST_SPACE", "HOST_EXPRESSION", "HOST_CRLF", 
                      "IF_SPACE", "IF_OPEN", "IF_CLOSE", "IF_EXPRESSION", 
                      "LOOP_SEMICOLON", "LOOP_SPACE", "LOOP_BEGIN", "LOOP_UNTIL", 
                      "LOOP_OPEN", "LOOP_CLOSE", "LOOP_BREAK", "LOOP_END", 
                      "LOOP_CONTINUE", "LOOP_EXPRESSION", "LOOP_CRLF", "WHENEVER_SPACE", 
                      "WHENEVER_EXITCODE", "WHENEVER_ERROR", "WHENEVER_SEMICOLON", 
                      "WHENEVER_CONTINUE", "WHENEVER_EXIT", "WHENEVER_CRLF", 
                      "SET_SPACE", "SET_EXPRESSION", "SET_SEMICOLON", "SET_AT", 
                      "SET_CRLF", "USE_API", "USE_SQL", "USE_SPACE", "USE_SEMICOLON", 
                      "USE_CRLF", "SSH_CONNECT", "SSH_WITH", "SSH_USER", 
                      "SSH_KEYFILE", "SSH_PASSWORD", "SSH_EXECUTE", "SSH_DISCONNECT", 
                      "SSH_SAVE", "SSH_RESTORE", "SSH_INT", "SFTP", "SFTP_CHMOD", 
                      "SFTP_GETCWD", "SFTP_CHDIR", "SFTP_CHOWN", "SFTP_MKDIR", 
                      "SFTP_GET", "SFTP_PUT", "SFTP_REMOVE", "SFTP_RENAME", 
                      "SFTP_LISTDIR", "SFTP_TRUNCATE", "SSH_SPACE", "SSH_SEMICOLON", 
                      "SSH_CRLF", "SSH_EXPRESSION", "JOB_SPACE", "JOB_SEMICOLON", 
                      "JOB_EQUAL", "JOB_CRLF", "JOB_CREATE", "JOB_SHOW", 
                      "JOB_SET", "JOB_START", "JOB_WAIT", "JOB_SHUTDOWN", 
                      "JOB_ABORT", "JOB_TIMER", "JOB_REGISTER", "JOB_DEREGISTER", 
                      "JOB_WORKER", "JOB_MANGER", "JOB_ON", "JOB_OFF", "JOB_TO", 
                      "JOB_EXPRESSION", "COMPARE_SPACE", "COMPARE_SEMICOLON", 
                      "COMPARE_EQUAL", "COMPARE_CRLF", "COMPARE_SET", "COMPARE_UNSET", 
                      "COMPARE_MASK", "COMPARE_NOMASK", "COMPARE_MASKLINE", 
                      "COMPARE_NOMASKLINE", "COMPARE_CASE", "COMPARE_NOCASE", 
                      "COMPARE_IGBLANK", "COMPARE_NOIGBLANK", "COMPARE_TRIM", 
                      "COMPARE_NOTRIM", "COMPARE_OUTPUT", "COMPARE_CONSOLE", 
                      "COMPARE_DIFFFILE", "COMPARE_SKIPLINE", "COMPARE_NOSKIPLINE", 
                      "COMPARE_RESET", "COMPARE_ALGORITHM", "COMPARE_ENCODING", 
                      "COMPARE_WORK", "COMPARE_REFERENCE", "COMPARE_LCS", 
                      "COMPARE_MYERS", "COMPARE_EXPRESSION", "DATA_SPACE", 
                      "DATA_SEMICOLON", "DATA_SET", "DATA_SEEDFILE", "DATA_DIR", 
                      "DATA_CREATE", "DATA_FILE", "DATA_FILETYPE", "DATA_ROWS", 
                      "DATA_INT", "DATA_COMMA", "DATACOLUMN_OPEN", "DATA_CONVERT", 
                      "DATA_FROM", "DATA_EXPRESSION", "DATACOLUMN_EXPRESSION", 
                      "DATACOLUMN_SPACE", "DATACOLUMN_CLOSE" ]

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

    ruleNames =  [ "prog", "command", "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" ]

    EOF = Token.EOF
    HTTP_OPEN=1
    SCRIPT_OPEN=2
    COMMENT1=3
    COMMENT2=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_OPEN=25
    ASSERT=26
    START=27
    LOAD=28
    HOST=29
    IF=30
    ENDIF=31
    SET=32
    LOOP=33
    WHENEVER=34
    SSH=35
    JOB=36
    COMPARE=37
    DATA=38
    INT=39
    DECIMAL=40
    String=41
    HTTP_COMMENT=42
    DIVIDE=43
    SP=44
    HttpMethod=45
    HTTP_CLOSE=46
    HttpRequestTarget=47
    HttpHeaderFieldName=48
    FIELD_COLON=49
    FIELD_CRLF=50
    HttpHeaderFieldValue=51
    HttpHeaderFieldValueEnd=52
    HttpMultipartBoundaryEnd=53
    HttpMultipartBoundary=54
    HttpMessageBodyComment=55
    HttpMessageBodyOperate=56
    ScriptBlock=57
    EchoBlock=58
    ASSERT_SPACE=59
    ASSERT_OPEN=60
    ASSERT_CLOSE=61
    ASSERT_CRLF=62
    ASSERT_EXPRESSION=63
    ASSERT_NAME=64
    ASSERT_COMMA=65
    ASSERT_SEMICOLON=66
    LOAD_SPACE=67
    LOAD_EQUAL=68
    LOAD_PLUGIN=69
    LOAD_MAP=70
    LOAD_JDBCDRIVER=71
    LOAD_JDBCFILE=72
    LOAD_JDBCCLASS=73
    LOAD_JDBCNAME=74
    LOAD_JDBCPROP=75
    LOAD_JDBCURL=76
    LOAD_EXPRESSION=77
    LOAD_CRLF=78
    START_SPACE=79
    START_EXPRESSION=80
    START_CRLF=81
    HOST_SPACE=82
    HOST_EXPRESSION=83
    HOST_CRLF=84
    IF_SPACE=85
    IF_OPEN=86
    IF_CLOSE=87
    IF_EXPRESSION=88
    LOOP_SEMICOLON=89
    LOOP_SPACE=90
    LOOP_BEGIN=91
    LOOP_UNTIL=92
    LOOP_OPEN=93
    LOOP_CLOSE=94
    LOOP_BREAK=95
    LOOP_END=96
    LOOP_CONTINUE=97
    LOOP_EXPRESSION=98
    LOOP_CRLF=99
    WHENEVER_SPACE=100
    WHENEVER_EXITCODE=101
    WHENEVER_ERROR=102
    WHENEVER_SEMICOLON=103
    WHENEVER_CONTINUE=104
    WHENEVER_EXIT=105
    WHENEVER_CRLF=106
    SET_SPACE=107
    SET_EXPRESSION=108
    SET_SEMICOLON=109
    SET_AT=110
    SET_CRLF=111
    USE_API=112
    USE_SQL=113
    USE_SPACE=114
    USE_SEMICOLON=115
    USE_CRLF=116
    SSH_CONNECT=117
    SSH_WITH=118
    SSH_USER=119
    SSH_KEYFILE=120
    SSH_PASSWORD=121
    SSH_EXECUTE=122
    SSH_DISCONNECT=123
    SSH_SAVE=124
    SSH_RESTORE=125
    SSH_INT=126
    SFTP=127
    SFTP_CHMOD=128
    SFTP_GETCWD=129
    SFTP_CHDIR=130
    SFTP_CHOWN=131
    SFTP_MKDIR=132
    SFTP_GET=133
    SFTP_PUT=134
    SFTP_REMOVE=135
    SFTP_RENAME=136
    SFTP_LISTDIR=137
    SFTP_TRUNCATE=138
    SSH_SPACE=139
    SSH_SEMICOLON=140
    SSH_CRLF=141
    SSH_EXPRESSION=142
    JOB_SPACE=143
    JOB_SEMICOLON=144
    JOB_EQUAL=145
    JOB_CRLF=146
    JOB_CREATE=147
    JOB_SHOW=148
    JOB_SET=149
    JOB_START=150
    JOB_WAIT=151
    JOB_SHUTDOWN=152
    JOB_ABORT=153
    JOB_TIMER=154
    JOB_REGISTER=155
    JOB_DEREGISTER=156
    JOB_WORKER=157
    JOB_MANGER=158
    JOB_ON=159
    JOB_OFF=160
    JOB_TO=161
    JOB_EXPRESSION=162
    COMPARE_SPACE=163
    COMPARE_SEMICOLON=164
    COMPARE_EQUAL=165
    COMPARE_CRLF=166
    COMPARE_SET=167
    COMPARE_UNSET=168
    COMPARE_MASK=169
    COMPARE_NOMASK=170
    COMPARE_MASKLINE=171
    COMPARE_NOMASKLINE=172
    COMPARE_CASE=173
    COMPARE_NOCASE=174
    COMPARE_IGBLANK=175
    COMPARE_NOIGBLANK=176
    COMPARE_TRIM=177
    COMPARE_NOTRIM=178
    COMPARE_OUTPUT=179
    COMPARE_CONSOLE=180
    COMPARE_DIFFFILE=181
    COMPARE_SKIPLINE=182
    COMPARE_NOSKIPLINE=183
    COMPARE_RESET=184
    COMPARE_ALGORITHM=185
    COMPARE_ENCODING=186
    COMPARE_WORK=187
    COMPARE_REFERENCE=188
    COMPARE_LCS=189
    COMPARE_MYERS=190
    COMPARE_EXPRESSION=191
    DATA_SPACE=192
    DATA_SEMICOLON=193
    DATA_SET=194
    DATA_SEEDFILE=195
    DATA_DIR=196
    DATA_CREATE=197
    DATA_FILE=198
    DATA_FILETYPE=199
    DATA_ROWS=200
    DATA_INT=201
    DATA_COMMA=202
    DATACOLUMN_OPEN=203
    DATA_CONVERT=204
    DATA_FROM=205
    DATA_EXPRESSION=206
    DATACOLUMN_EXPRESSION=207
    DATACOLUMN_SPACE=208
    DATACOLUMN_CLOSE=209

    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 = 78
            self.command()
            self.state = 79
            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 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 = 84
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38]:
                self.enterOuterAlt(localctx, 1)
                self.state = 81
                self.baseCommand()
                pass
            elif token in [1]:
                self.enterOuterAlt(localctx, 2)
                self.state = 82
                self.http()
                pass
            elif token in [-1]:
                self.enterOuterAlt(localctx, 3)
                self.state = 83
                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 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, 4, self.RULE_http)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 86
            self.match(APIParser.HTTP_OPEN)
            self.state = 90
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==5:
                self.state = 87
                self.match(APIParser.CRLF)
                self.state = 92
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 93
            self.httpMessage()
            self.state = 94
            _la = self._input.LA(1)
            if not(_la==-1 or _la==46):
                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, 6, self.RULE_httpMessage)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 96
            self.httpRequestLine()
            self.state = 97
            self.httpHeaderFields()
            self.state = 99
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if ((_la) & ~0x3f) == 0 and ((1 << _la) & 90074191570665504) != 0:
                self.state = 98
                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, 8, self.RULE_httpRequestLine)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 101
            self.httpMethod()
            self.state = 102
            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, 10, self.RULE_httpMethod)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 104
            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, 12, self.RULE_httpRequestTarget)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 106
            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, 14, self.RULE_httpHeaderFields)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 111
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==48:
                self.state = 108
                self.httpHeaderField()
                self.state = 113
                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, 16, self.RULE_httpHeaderField)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 114
            self.httpHeaderFieldName()
            self.state = 115
            self.match(APIParser.FIELD_COLON)
            self.state = 116
            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, 18, self.RULE_httpHeaderFieldName)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 118
            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, 20, self.RULE_httpHeaderFieldValue)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 120
            self.match(APIParser.HttpHeaderFieldValue)
            self.state = 121
            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, 22, self.RULE_httpMessageBody)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 125 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 125
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [54]:
                    self.state = 123
                    self.httpMultipart()
                    pass
                elif token in [5, 41, 56]:
                    self.state = 124
                    self.httpMessageBodyContent()
                    pass
                else:
                    raise NoViableAltException(self)

                self.state = 127 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (((_la) & ~0x3f) == 0 and ((1 << _la) & 90074191570665504) != 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, 24, self.RULE_httpMultipart)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 130 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 129
                self.httpMultipartBoundary()
                self.state = 132 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==54):
                    break

            self.state = 134
            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, 26, self.RULE_httpMultipartBoundary)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 136
            self.httpBoundaryDelimiter()
            self.state = 137
            self.httpHeaderFields()
            self.state = 138
            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, 28, self.RULE_httpBoundaryDelimiter)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 140
            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, 30, self.RULE_httpMessageBodyContent)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 144 
            self._errHandler.sync(self)
            _alt = 1
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt == 1:
                    self.state = 144
                    self._errHandler.sync(self)
                    token = self._input.LA(1)
                    if token in [56]:
                        self.state = 142
                        self.httpMessageBodyOperate()
                        pass
                    elif token in [5, 41]:
                        self.state = 143
                        self.httpMessageBodyOther()
                        pass
                    else:
                        raise NoViableAltException(self)


                else:
                    raise NoViableAltException(self)
                self.state = 146 
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,8,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, 32, self.RULE_httpMessageBodyOperate)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 148
            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, 34, self.RULE_httpMessageBodyOther)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 151 
            self._errHandler.sync(self)
            _alt = 1
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt == 1:
                    self.state = 150
                    _la = self._input.LA(1)
                    if not(_la==5 or _la==41):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()

                else:
                    raise NoViableAltException(self)
                self.state = 153 
                self._errHandler.sync(self)
                _alt = self._interp.adaptivePredict(self._input,9,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 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, 36, self.RULE_baseCommand)
        try:
            self.state = 175
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [26]:
                self.enterOuterAlt(localctx, 1)
                self.state = 155
                self.assert_()
                pass
            elif token in [28]:
                self.enterOuterAlt(localctx, 2)
                self.state = 156
                self.load()
                pass
            elif token in [29]:
                self.enterOuterAlt(localctx, 3)
                self.state = 157
                self.host()
                pass
            elif token in [27]:
                self.enterOuterAlt(localctx, 4)
                self.state = 158
                self.start()
                pass
            elif token in [33]:
                self.enterOuterAlt(localctx, 5)
                self.state = 159
                self.loop()
                pass
            elif token in [30]:
                self.enterOuterAlt(localctx, 6)
                self.state = 160
                self.if_()
                pass
            elif token in [31]:
                self.enterOuterAlt(localctx, 7)
                self.state = 161
                self.endif()
                pass
            elif token in [34]:
                self.enterOuterAlt(localctx, 8)
                self.state = 162
                self.whenever()
                pass
            elif token in [32]:
                self.enterOuterAlt(localctx, 9)
                self.state = 163
                self.set_()
                pass
            elif token in [24]:
                self.enterOuterAlt(localctx, 10)
                self.state = 164
                self.use()
                pass
            elif token in [20]:
                self.enterOuterAlt(localctx, 11)
                self.state = 165
                self.exit()
                pass
            elif token in [21]:
                self.enterOuterAlt(localctx, 12)
                self.state = 166
                self.quit()
                pass
            elif token in [23]:
                self.enterOuterAlt(localctx, 13)
                self.state = 167
                self.sleep()
                pass
            elif token in [22]:
                self.enterOuterAlt(localctx, 14)
                self.state = 168
                self.spool()
                pass
            elif token in [2]:
                self.enterOuterAlt(localctx, 15)
                self.state = 169
                self.script()
                pass
            elif token in [25]:
                self.enterOuterAlt(localctx, 16)
                self.state = 170
                self.echo()
                pass
            elif token in [35]:
                self.enterOuterAlt(localctx, 17)
                self.state = 171
                self.ssh()
                pass
            elif token in [36]:
                self.enterOuterAlt(localctx, 18)
                self.state = 172
                self.job()
                pass
            elif token in [37]:
                self.enterOuterAlt(localctx, 19)
                self.state = 173
                self.compare()
                pass
            elif token in [38]:
                self.enterOuterAlt(localctx, 20)
                self.state = 174
                self.data()
                pass
            else:
                raise NoViableAltException(self)

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


    class ExitContext(ParserRuleContext):
        __slots__ = 'parser'

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

        def EXIT(self):
            return self.getToken(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, 38, self.RULE_exit)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 177
            self.match(APIParser.EXIT)
            self.state = 179
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==39:
                self.state = 178
                self.match(APIParser.INT)


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


            self.state = 185
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 184
                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, 40, self.RULE_quit)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 187
            self.match(APIParser.QUIT)
            self.state = 189
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==39:
                self.state = 188
                self.match(APIParser.INT)


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


            self.state = 195
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 194
                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, 42, self.RULE_use)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 197
            self.match(APIParser.USE)
            self.state = 198
            _la = self._input.LA(1)
            if not(_la==112 or _la==113):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 200
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==115:
                self.state = 199
                self.match(APIParser.USE_SEMICOLON)


            self.state = 203
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 202
                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, 44, self.RULE_sleep)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 205
            self.match(APIParser.SLEEP)
            self.state = 206
            self.match(APIParser.INT)
            self.state = 208
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 207
                self.match(APIParser.SEMICOLON)


            self.state = 211
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 210
                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, 46, self.RULE_start)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 213
            self.match(APIParser.START)
            self.state = 215 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 214
                self.match(APIParser.START_EXPRESSION)
                self.state = 217 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==80):
                    break

            self.state = 220
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 219
                self.match(APIParser.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 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 SEMICOLON(self):
            return self.getToken(APIParser.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, 48, self.RULE_load)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 225
            self.match(APIParser.LOAD)
            self.state = 251
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [69]:
                self.state = 226
                self.match(APIParser.LOAD_PLUGIN)
                self.state = 227
                self.match(APIParser.LOAD_EXPRESSION)
                pass
            elif token in [70]:
                self.state = 228
                self.match(APIParser.LOAD_MAP)
                self.state = 229
                self.match(APIParser.LOAD_EXPRESSION)
                pass
            elif token in [71]:
                self.state = 230
                self.match(APIParser.LOAD_JDBCDRIVER)
                self.state = 248
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 72)) & ~0x3f) == 0 and ((1 << (_la - 72)) & 31) != 0:
                    self.state = 246
                    self._errHandler.sync(self)
                    token = self._input.LA(1)
                    if token in [73]:
                        self.state = 231
                        self.match(APIParser.LOAD_JDBCCLASS)
                        self.state = 232
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 233
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [72]:
                        self.state = 234
                        self.match(APIParser.LOAD_JDBCFILE)
                        self.state = 235
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 236
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [74]:
                        self.state = 237
                        self.match(APIParser.LOAD_JDBCNAME)
                        self.state = 238
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 239
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [75]:
                        self.state = 240
                        self.match(APIParser.LOAD_JDBCPROP)
                        self.state = 241
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 242
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    elif token in [76]:
                        self.state = 243
                        self.match(APIParser.LOAD_JDBCURL)
                        self.state = 244
                        self.match(APIParser.LOAD_EQUAL)
                        self.state = 245
                        self.match(APIParser.LOAD_EXPRESSION)
                        pass
                    else:
                        raise NoViableAltException(self)

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

                pass
            else:
                raise NoViableAltException(self)

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


            self.state = 257
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 256
                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_COMMA(self):
            return self.getToken(APIParser.ASSERT_COMMA, 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 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, 50, self.RULE_assert)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 259
            self.match(APIParser.ASSERT)
            self.state = 260
            self.match(APIParser.ASSERT_EXPRESSION)
            self.state = 263
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==65:
                self.state = 261
                self.match(APIParser.ASSERT_COMMA)
                self.state = 262
                self.match(APIParser.ASSERT_NAME)


            self.state = 266
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==66:
                self.state = 265
                self.match(APIParser.ASSERT_SEMICOLON)


            self.state = 269
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 268
                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, 52, self.RULE_host)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 271
            self.match(APIParser.HOST)
            self.state = 272
            self.match(APIParser.HOST_EXPRESSION)
            self.state = 274
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 273
                self.match(APIParser.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 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_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_SEMICOLON(self):
            return self.getToken(APIParser.LOOP_SEMICOLON, 0)

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

        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, 54, self.RULE_loop)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 279
            self.match(APIParser.LOOP)
            self.state = 286
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [95]:
                self.state = 280
                self.match(APIParser.LOOP_BREAK)
                pass
            elif token in [96]:
                self.state = 281
                self.match(APIParser.LOOP_END)
                pass
            elif token in [97]:
                self.state = 282
                self.match(APIParser.LOOP_CONTINUE)
                pass
            elif token in [91]:
                self.state = 283
                self.match(APIParser.LOOP_BEGIN)
                self.state = 284
                self.match(APIParser.LOOP_UNTIL)
                self.state = 285
                self.match(APIParser.LOOP_EXPRESSION)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 289
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==89:
                self.state = 288
                self.match(APIParser.LOOP_SEMICOLON)


            self.state = 292
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 291
                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, 56, self.RULE_if)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 294
            self.match(APIParser.IF)
            self.state = 295
            self.match(APIParser.IF_EXPRESSION)
            self.state = 297
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 296
                self.match(APIParser.SEMICOLON)


            self.state = 300
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 299
                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, 58, self.RULE_endif)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 302
            self.match(APIParser.ENDIF)
            self.state = 304
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 303
                self.match(APIParser.SEMICOLON)


            self.state = 307
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 306
                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, 60, self.RULE_whenever)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 309
            self.match(APIParser.WHENEVER)
            self.state = 310
            self.match(APIParser.WHENEVER_ERROR)
            self.state = 314
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [104]:
                self.state = 311
                self.match(APIParser.WHENEVER_CONTINUE)
                pass
            elif token in [105]:
                self.state = 312
                self.match(APIParser.WHENEVER_EXIT)
                self.state = 313
                self.match(APIParser.WHENEVER_EXITCODE)
                pass
            else:
                raise NoViableAltException(self)

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


            self.state = 320
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 319
                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, 62, self.RULE_spool)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 322
            self.match(APIParser.SPOOL)
            self.state = 323
            self.match(APIParser.String)
            self.state = 325
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 324
                self.match(APIParser.SEMICOLON)


            self.state = 328
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 327
                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_OPEN(self):
            return self.getToken(APIParser.ECHO_OPEN, 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, 64, self.RULE_echo)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 330
            self.match(APIParser.ECHO_OPEN)
            self.state = 331
            self.match(APIParser.EchoBlock)
            self.state = 333
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,46,self._ctx)
            if la_ == 1:
                self.state = 332
                _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_OPEN(self):
            return self.getToken(APIParser.SCRIPT_OPEN, 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, 66, self.RULE_script)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 335
            self.match(APIParser.SCRIPT_OPEN)
            self.state = 336
            self.match(APIParser.ScriptBlock)
            self.state = 338
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 337
                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_AT(self):
            return self.getToken(APIParser.SET_AT, 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, 68, self.RULE_set)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 340
            self.match(APIParser.SET)
            self.state = 342
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==110:
                self.state = 341
                self.match(APIParser.SET_AT)


            self.state = 347
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==108:
                self.state = 344
                self.match(APIParser.SET_EXPRESSION)
                self.state = 349
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 351
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==109:
                self.state = 350
                self.match(APIParser.SET_SEMICOLON)


            self.state = 354
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 353
                self.match(APIParser.CRLF)


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


    class 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 SSH_INT(self, i:int=None):
            if i is None:
                return self.getTokens(APIParser.SSH_INT)
            else:
                return self.getToken(APIParser.SSH_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, 70, self.RULE_ssh)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 356
            self.match(APIParser.SSH)
            self.state = 416
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,55,self._ctx)
            if la_ == 1:
                self.state = 357
                self.match(APIParser.SSH_CONNECT)
                self.state = 358
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 359
                self.match(APIParser.SSH_WITH)
                self.state = 360
                self.match(APIParser.SSH_USER)
                self.state = 361
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 362
                self.match(APIParser.SSH_KEYFILE)
                self.state = 363
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 2:
                self.state = 364
                self.match(APIParser.SSH_CONNECT)
                self.state = 365
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 366
                self.match(APIParser.SSH_WITH)
                self.state = 367
                self.match(APIParser.SSH_USER)
                self.state = 368
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 371
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==121:
                    self.state = 369
                    self.match(APIParser.SSH_PASSWORD)
                    self.state = 370
                    self.match(APIParser.SSH_EXPRESSION)


                pass

            elif la_ == 3:
                self.state = 373
                self.match(APIParser.SSH_EXECUTE)
                self.state = 375 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 374
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 377 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==142):
                        break

                pass

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

            elif la_ == 5:
                self.state = 380
                self.match(APIParser.SSH_SAVE)
                self.state = 381
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 6:
                self.state = 382
                self.match(APIParser.SSH_RESTORE)
                self.state = 383
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 7:
                self.state = 384
                self.match(APIParser.SFTP)
                self.state = 414
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [128]:
                    self.state = 385
                    self.match(APIParser.SFTP_CHMOD)
                    self.state = 386
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 387
                    self.match(APIParser.SSH_INT)
                    pass
                elif token in [129]:
                    self.state = 388
                    self.match(APIParser.SFTP_GETCWD)
                    pass
                elif token in [130]:
                    self.state = 389
                    self.match(APIParser.SFTP_CHDIR)
                    self.state = 390
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [131]:
                    self.state = 391
                    self.match(APIParser.SFTP_CHOWN)
                    self.state = 392
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 393
                    self.match(APIParser.SSH_INT)
                    self.state = 394
                    self.match(APIParser.SSH_INT)
                    pass
                elif token in [132]:
                    self.state = 395
                    self.match(APIParser.SFTP_MKDIR)
                    self.state = 396
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 397
                    self.match(APIParser.SSH_INT)
                    pass
                elif token in [133]:
                    self.state = 398
                    self.match(APIParser.SFTP_GET)
                    self.state = 399
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 400
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [134]:
                    self.state = 401
                    self.match(APIParser.SFTP_PUT)
                    self.state = 402
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 403
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [135]:
                    self.state = 404
                    self.match(APIParser.SFTP_REMOVE)
                    self.state = 405
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [136]:
                    self.state = 406
                    self.match(APIParser.SFTP_RENAME)
                    self.state = 407
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 408
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [137]:
                    self.state = 409
                    self.match(APIParser.SFTP_LISTDIR)
                    self.state = 410
                    self.match(APIParser.SSH_EXPRESSION)
                    pass
                elif token in [138]:
                    self.state = 411
                    self.match(APIParser.SFTP_TRUNCATE)
                    self.state = 412
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 413
                    self.match(APIParser.SSH_INT)
                    pass
                else:
                    raise NoViableAltException(self)

                pass


            self.state = 419
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==140:
                self.state = 418
                self.match(APIParser.SSH_SEMICOLON)


            self.state = 422
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 421
                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, 72, self.RULE_job)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 424
            self.match(APIParser.JOB)
            self.state = 464
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [158]:
                self.state = 425
                self.match(APIParser.JOB_MANGER)
                self.state = 426
                _la = self._input.LA(1)
                if not(_la==159 or _la==160):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass
            elif token in [151]:
                self.state = 427
                self.match(APIParser.JOB_WAIT)
                self.state = 428
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [148]:
                self.state = 429
                self.match(APIParser.JOB_SHOW)
                self.state = 430
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [153]:
                self.state = 431
                self.match(APIParser.JOB_ABORT)
                self.state = 432
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [152]:
                self.state = 433
                self.match(APIParser.JOB_SHUTDOWN)
                self.state = 434
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [154]:
                self.state = 435
                self.match(APIParser.JOB_TIMER)
                self.state = 436
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [150]:
                self.state = 437
                self.match(APIParser.JOB_START)
                self.state = 438
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [156]:
                self.state = 439
                self.match(APIParser.JOB_DEREGISTER)
                self.state = 440
                self.match(APIParser.JOB_WORKER)
                pass
            elif token in [155]:
                self.state = 441
                self.match(APIParser.JOB_REGISTER)
                self.state = 442
                self.match(APIParser.JOB_WORKER)
                self.state = 443
                self.match(APIParser.JOB_TO)
                self.state = 444
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [149]:
                self.state = 445
                self.match(APIParser.JOB_SET)
                self.state = 446
                self.match(APIParser.JOB_EXPRESSION)
                self.state = 450 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 447
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 448
                    self.match(APIParser.JOB_EQUAL)
                    self.state = 449
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 452 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==162):
                        break

                pass
            elif token in [147]:
                self.state = 454
                self.match(APIParser.JOB_CREATE)
                self.state = 455
                self.match(APIParser.JOB_EXPRESSION)
                self.state = 461
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while _la==162:
                    self.state = 456
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 457
                    self.match(APIParser.JOB_EQUAL)
                    self.state = 458
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 463
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass
            else:
                raise NoViableAltException(self)

            self.state = 467
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==144:
                self.state = 466
                self.match(APIParser.JOB_SEMICOLON)


            self.state = 470
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 469
                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, 74, self.RULE_compare)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 472
            self.match(APIParser.COMPARE)
            self.state = 511
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,66,self._ctx)
            if la_ == 1:
                self.state = 473
                self.match(APIParser.COMPARE_EXPRESSION)
                self.state = 474
                self.match(APIParser.COMPARE_EXPRESSION)
                self.state = 478
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 169)) & ~0x3f) == 0 and ((1 << (_la - 169)) & 1011) != 0:
                    self.state = 475
                    _la = self._input.LA(1)
                    if not((((_la - 169)) & ~0x3f) == 0 and ((1 << (_la - 169)) & 1011) != 0):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 480
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 2:
                self.state = 481
                _la = self._input.LA(1)
                if not(_la==182 or _la==183):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 482
                self.match(APIParser.COMPARE_EXPRESSION)
                pass

            elif la_ == 3:
                self.state = 483
                self.match(APIParser.COMPARE_MASKLINE)
                self.state = 484
                self.match(APIParser.COMPARE_EXPRESSION)
                self.state = 485
                self.match(APIParser.COMPARE_EQUAL)
                self.state = 486
                self.match(APIParser.COMPARE_EXPRESSION)
                pass

            elif la_ == 4:
                self.state = 487
                self.match(APIParser.COMPARE_NOMASKLINE)
                self.state = 488
                self.match(APIParser.COMPARE_EXPRESSION)
                pass

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

            elif la_ == 6:
                self.state = 490
                self.match(APIParser.COMPARE_SET)
                self.state = 494
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while (((_la - 169)) & ~0x3f) == 0 and ((1 << (_la - 169)) & 1011) != 0:
                    self.state = 491
                    _la = self._input.LA(1)
                    if not((((_la - 169)) & ~0x3f) == 0 and ((1 << (_la - 169)) & 1011) != 0):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 496
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)

                pass

            elif la_ == 7:
                self.state = 497
                self.match(APIParser.COMPARE_SET)
                self.state = 498
                self.match(APIParser.COMPARE_OUTPUT)
                self.state = 500 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 499
                    _la = self._input.LA(1)
                    if not(_la==180 or _la==181):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()
                    self.state = 502 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==180 or _la==181):
                        break

                pass

            elif la_ == 8:
                self.state = 504
                self.match(APIParser.COMPARE_SET)
                self.state = 505
                self.match(APIParser.COMPARE_ALGORITHM)
                self.state = 506
                _la = self._input.LA(1)
                if not(_la==189 or _la==190):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                pass

            elif la_ == 9:
                self.state = 507
                self.match(APIParser.COMPARE_SET)
                self.state = 508
                _la = self._input.LA(1)
                if not(_la==187 or _la==188):
                    self._errHandler.recoverInline(self)
                else:
                    self._errHandler.reportMatch(self)
                    self.consume()
                self.state = 509
                self.match(APIParser.COMPARE_ENCODING)
                self.state = 510
                self.match(APIParser.COMPARE_EXPRESSION)
                pass


            self.state = 514
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==164:
                self.state = 513
                self.match(APIParser.COMPARE_SEMICOLON)


            self.state = 517
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 516
                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 DATA_SEMICOLON(self):
            return self.getToken(APIParser.DATA_SEMICOLON, 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 DATACOLUMN_CLOSE(self):
            return self.getToken(APIParser.DATACOLUMN_CLOSE, 0)

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

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

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

        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, 76, self.RULE_data)
        self._la = 0 # Token type
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 519
            self.match(APIParser.DATA)
            self.state = 547
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [194]:
                self.state = 520
                self.match(APIParser.DATA_SET)
                self.state = 521
                self.match(APIParser.DATA_SEEDFILE)
                self.state = 522
                self.match(APIParser.DATA_DIR)
                self.state = 523
                self.match(APIParser.DATA_EXPRESSION)
                pass
            elif token in [197]:
                self.state = 524
                self.match(APIParser.DATA_CREATE)
                self.state = 525
                self.match(APIParser.DATA_FILETYPE)
                self.state = 526
                self.match(APIParser.DATA_FILE)
                self.state = 527
                self.match(APIParser.DATA_EXPRESSION)
                self.state = 528
                self.match(APIParser.DATACOLUMN_OPEN)
                self.state = 530 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 529
                    self.match(APIParser.DATACOLUMN_EXPRESSION)
                    self.state = 532 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==207):
                        break

                self.state = 534
                self.match(APIParser.DATACOLUMN_CLOSE)
                self.state = 537
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==200:
                    self.state = 535
                    self.match(APIParser.DATA_ROWS)
                    self.state = 536
                    self.match(APIParser.DATA_INT)


                pass
            elif token in [204]:
                self.state = 539
                self.match(APIParser.DATA_CONVERT)
                self.state = 540
                self.match(APIParser.DATA_FILETYPE)
                self.state = 541
                self.match(APIParser.DATA_FILE)
                self.state = 542
                self.match(APIParser.DATA_EXPRESSION)
                self.state = 543
                self.match(APIParser.DATA_FROM)
                self.state = 544
                self.match(APIParser.DATA_FILETYPE)
                self.state = 545
                self.match(APIParser.DATA_FILE)
                self.state = 546
                self.match(APIParser.DATA_EXPRESSION)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 550
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==193:
                self.state = 549
                self.match(APIParser.DATA_SEMICOLON)


            self.state = 553
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 552
                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





