# 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,132,403,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,1,0,1,0,1,0,1,1,1,1,1,1,3,
        1,81,8,1,1,2,1,2,5,2,85,8,2,10,2,12,2,88,9,2,1,2,1,2,1,2,1,3,1,3,
        1,3,3,3,96,8,3,1,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,5,7,106,8,7,10,7,
        12,7,109,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,122,8,11,11,11,12,11,123,1,12,4,12,127,8,12,11,12,12,12,128,1,
        12,1,12,1,13,1,13,1,13,1,13,1,14,1,14,1,15,1,15,4,15,141,8,15,11,
        15,12,15,142,1,16,1,16,1,17,4,17,148,8,17,11,17,12,17,149,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,170,8,18,1,19,1,19,3,19,174,8,19,1,19,3,19,
        177,8,19,1,19,3,19,180,8,19,1,20,1,20,3,20,184,8,20,1,20,3,20,187,
        8,20,1,20,3,20,190,8,20,1,21,1,21,1,21,3,21,195,8,21,1,21,3,21,198,
        8,21,1,22,1,22,1,22,3,22,203,8,22,1,22,3,22,206,8,22,1,23,1,23,4,
        23,210,8,23,11,23,12,23,211,1,23,3,23,215,8,23,1,23,3,23,218,8,23,
        1,24,1,24,1,24,4,24,223,8,24,11,24,12,24,224,1,24,3,24,228,8,24,
        1,24,3,24,231,8,24,1,25,1,25,1,25,3,25,236,8,25,1,25,3,25,239,8,
        25,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,27,3,27,251,8,
        27,1,27,3,27,254,8,27,1,27,3,27,257,8,27,1,28,1,28,1,28,3,28,262,
        8,28,1,28,3,28,265,8,28,1,29,1,29,3,29,269,8,29,1,29,3,29,272,8,
        29,1,30,1,30,1,30,1,30,1,30,3,30,279,8,30,1,30,3,30,282,8,30,1,30,
        3,30,285,8,30,1,31,1,31,1,31,3,31,290,8,31,1,31,3,31,293,8,31,1,
        32,1,32,1,32,3,32,298,8,32,1,33,1,33,1,33,3,33,303,8,33,1,34,1,34,
        3,34,307,8,34,1,34,5,34,310,8,34,10,34,12,34,313,9,34,1,34,3,34,
        316,8,34,1,34,3,34,319,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,336,8,35,1,35,1,35,4,
        35,340,8,35,11,35,12,35,341,1,35,1,35,1,35,1,35,1,35,1,35,3,35,350,
        8,35,1,35,3,35,353,8,35,1,35,3,35,356,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,4,36,382,8,36,11,36,12,36,383,1,
        36,1,36,1,36,1,36,1,36,4,36,391,8,36,11,36,12,36,392,3,36,395,8,
        36,1,36,3,36,398,8,36,1,36,3,36,401,8,36,1,36,0,0,37,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,0,4,1,1,44,44,2,0,5,5,39,39,1,0,98,99,
        1,1,5,5,454,0,74,1,0,0,0,2,80,1,0,0,0,4,82,1,0,0,0,6,92,1,0,0,0,
        8,97,1,0,0,0,10,100,1,0,0,0,12,102,1,0,0,0,14,107,1,0,0,0,16,110,
        1,0,0,0,18,114,1,0,0,0,20,116,1,0,0,0,22,121,1,0,0,0,24,126,1,0,
        0,0,26,132,1,0,0,0,28,136,1,0,0,0,30,140,1,0,0,0,32,144,1,0,0,0,
        34,147,1,0,0,0,36,169,1,0,0,0,38,171,1,0,0,0,40,181,1,0,0,0,42,191,
        1,0,0,0,44,199,1,0,0,0,46,207,1,0,0,0,48,219,1,0,0,0,50,232,1,0,
        0,0,52,240,1,0,0,0,54,243,1,0,0,0,56,258,1,0,0,0,58,266,1,0,0,0,
        60,273,1,0,0,0,62,286,1,0,0,0,64,294,1,0,0,0,66,299,1,0,0,0,68,304,
        1,0,0,0,70,320,1,0,0,0,72,357,1,0,0,0,74,75,3,2,1,0,75,76,5,0,0,
        1,76,1,1,0,0,0,77,81,3,36,18,0,78,81,3,4,2,0,79,81,5,0,0,1,80,77,
        1,0,0,0,80,78,1,0,0,0,80,79,1,0,0,0,81,3,1,0,0,0,82,86,5,1,0,0,83,
        85,5,5,0,0,84,83,1,0,0,0,85,88,1,0,0,0,86,84,1,0,0,0,86,87,1,0,0,
        0,87,89,1,0,0,0,88,86,1,0,0,0,89,90,3,6,3,0,90,91,7,0,0,0,91,5,1,
        0,0,0,92,93,3,8,4,0,93,95,3,14,7,0,94,96,3,22,11,0,95,94,1,0,0,0,
        95,96,1,0,0,0,96,7,1,0,0,0,97,98,3,10,5,0,98,99,3,12,6,0,99,9,1,
        0,0,0,100,101,5,43,0,0,101,11,1,0,0,0,102,103,5,45,0,0,103,13,1,
        0,0,0,104,106,3,16,8,0,105,104,1,0,0,0,106,109,1,0,0,0,107,105,1,
        0,0,0,107,108,1,0,0,0,108,15,1,0,0,0,109,107,1,0,0,0,110,111,3,18,
        9,0,111,112,5,47,0,0,112,113,3,20,10,0,113,17,1,0,0,0,114,115,5,
        46,0,0,115,19,1,0,0,0,116,117,5,49,0,0,117,118,5,50,0,0,118,21,1,
        0,0,0,119,122,3,24,12,0,120,122,3,30,15,0,121,119,1,0,0,0,121,120,
        1,0,0,0,122,123,1,0,0,0,123,121,1,0,0,0,123,124,1,0,0,0,124,23,1,
        0,0,0,125,127,3,26,13,0,126,125,1,0,0,0,127,128,1,0,0,0,128,126,
        1,0,0,0,128,129,1,0,0,0,129,130,1,0,0,0,130,131,5,51,0,0,131,25,
        1,0,0,0,132,133,3,28,14,0,133,134,3,14,7,0,134,135,3,30,15,0,135,
        27,1,0,0,0,136,137,5,52,0,0,137,29,1,0,0,0,138,141,3,32,16,0,139,
        141,3,34,17,0,140,138,1,0,0,0,140,139,1,0,0,0,141,142,1,0,0,0,142,
        140,1,0,0,0,142,143,1,0,0,0,143,31,1,0,0,0,144,145,5,54,0,0,145,
        33,1,0,0,0,146,148,7,1,0,0,147,146,1,0,0,0,148,149,1,0,0,0,149,147,
        1,0,0,0,149,150,1,0,0,0,150,35,1,0,0,0,151,170,3,50,25,0,152,170,
        3,48,24,0,153,170,3,52,26,0,154,170,3,46,23,0,155,170,3,54,27,0,
        156,170,3,56,28,0,157,170,3,58,29,0,158,170,3,60,30,0,159,170,3,
        68,34,0,160,170,3,42,21,0,161,170,3,38,19,0,162,170,3,40,20,0,163,
        170,3,44,22,0,164,170,3,62,31,0,165,170,3,66,33,0,166,170,3,64,32,
        0,167,170,3,70,35,0,168,170,3,72,36,0,169,151,1,0,0,0,169,152,1,
        0,0,0,169,153,1,0,0,0,169,154,1,0,0,0,169,155,1,0,0,0,169,156,1,
        0,0,0,169,157,1,0,0,0,169,158,1,0,0,0,169,159,1,0,0,0,169,160,1,
        0,0,0,169,161,1,0,0,0,169,162,1,0,0,0,169,163,1,0,0,0,169,164,1,
        0,0,0,169,165,1,0,0,0,169,166,1,0,0,0,169,167,1,0,0,0,169,168,1,
        0,0,0,170,37,1,0,0,0,171,173,5,20,0,0,172,174,5,37,0,0,173,172,1,
        0,0,0,173,174,1,0,0,0,174,176,1,0,0,0,175,177,5,7,0,0,176,175,1,
        0,0,0,176,177,1,0,0,0,177,179,1,0,0,0,178,180,5,5,0,0,179,178,1,
        0,0,0,179,180,1,0,0,0,180,39,1,0,0,0,181,183,5,21,0,0,182,184,5,
        37,0,0,183,182,1,0,0,0,183,184,1,0,0,0,184,186,1,0,0,0,185,187,5,
        7,0,0,186,185,1,0,0,0,186,187,1,0,0,0,187,189,1,0,0,0,188,190,5,
        5,0,0,189,188,1,0,0,0,189,190,1,0,0,0,190,41,1,0,0,0,191,192,5,24,
        0,0,192,194,7,2,0,0,193,195,5,101,0,0,194,193,1,0,0,0,194,195,1,
        0,0,0,195,197,1,0,0,0,196,198,5,5,0,0,197,196,1,0,0,0,197,198,1,
        0,0,0,198,43,1,0,0,0,199,200,5,23,0,0,200,202,5,37,0,0,201,203,5,
        7,0,0,202,201,1,0,0,0,202,203,1,0,0,0,203,205,1,0,0,0,204,206,5,
        5,0,0,205,204,1,0,0,0,205,206,1,0,0,0,206,45,1,0,0,0,207,209,5,27,
        0,0,208,210,5,66,0,0,209,208,1,0,0,0,210,211,1,0,0,0,211,209,1,0,
        0,0,211,212,1,0,0,0,212,214,1,0,0,0,213,215,5,7,0,0,214,213,1,0,
        0,0,214,215,1,0,0,0,215,217,1,0,0,0,216,218,5,5,0,0,217,216,1,0,
        0,0,217,218,1,0,0,0,218,47,1,0,0,0,219,220,5,28,0,0,220,222,5,62,
        0,0,221,223,5,63,0,0,222,221,1,0,0,0,223,224,1,0,0,0,224,222,1,0,
        0,0,224,225,1,0,0,0,225,227,1,0,0,0,226,228,5,7,0,0,227,226,1,0,
        0,0,227,228,1,0,0,0,228,230,1,0,0,0,229,231,5,5,0,0,230,229,1,0,
        0,0,230,231,1,0,0,0,231,49,1,0,0,0,232,233,5,26,0,0,233,235,5,60,
        0,0,234,236,5,7,0,0,235,234,1,0,0,0,235,236,1,0,0,0,236,238,1,0,
        0,0,237,239,5,5,0,0,238,237,1,0,0,0,238,239,1,0,0,0,239,51,1,0,0,
        0,240,241,5,29,0,0,241,242,5,70,0,0,242,53,1,0,0,0,243,250,5,33,
        0,0,244,251,5,81,0,0,245,251,5,82,0,0,246,251,5,83,0,0,247,248,5,
        77,0,0,248,249,5,78,0,0,249,251,5,84,0,0,250,244,1,0,0,0,250,245,
        1,0,0,0,250,246,1,0,0,0,250,247,1,0,0,0,251,253,1,0,0,0,252,254,
        5,75,0,0,253,252,1,0,0,0,253,254,1,0,0,0,254,256,1,0,0,0,255,257,
        5,5,0,0,256,255,1,0,0,0,256,257,1,0,0,0,257,55,1,0,0,0,258,259,5,
        30,0,0,259,261,5,74,0,0,260,262,5,7,0,0,261,260,1,0,0,0,261,262,
        1,0,0,0,262,264,1,0,0,0,263,265,5,5,0,0,264,263,1,0,0,0,264,265,
        1,0,0,0,265,57,1,0,0,0,266,268,5,31,0,0,267,269,5,7,0,0,268,267,
        1,0,0,0,268,269,1,0,0,0,269,271,1,0,0,0,270,272,5,5,0,0,271,270,
        1,0,0,0,271,272,1,0,0,0,272,59,1,0,0,0,273,274,5,34,0,0,274,278,
        5,88,0,0,275,279,5,90,0,0,276,277,5,91,0,0,277,279,5,87,0,0,278,
        275,1,0,0,0,278,276,1,0,0,0,279,281,1,0,0,0,280,282,5,89,0,0,281,
        280,1,0,0,0,281,282,1,0,0,0,282,284,1,0,0,0,283,285,5,5,0,0,284,
        283,1,0,0,0,284,285,1,0,0,0,285,61,1,0,0,0,286,287,5,22,0,0,287,
        289,5,39,0,0,288,290,5,7,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,
        63,1,0,0,0,294,295,5,25,0,0,295,297,5,56,0,0,296,298,7,3,0,0,297,
        296,1,0,0,0,297,298,1,0,0,0,298,65,1,0,0,0,299,300,5,2,0,0,300,302,
        5,55,0,0,301,303,5,5,0,0,302,301,1,0,0,0,302,303,1,0,0,0,303,67,
        1,0,0,0,304,306,5,32,0,0,305,307,5,96,0,0,306,305,1,0,0,0,306,307,
        1,0,0,0,307,311,1,0,0,0,308,310,5,94,0,0,309,308,1,0,0,0,310,313,
        1,0,0,0,311,309,1,0,0,0,311,312,1,0,0,0,312,315,1,0,0,0,313,311,
        1,0,0,0,314,316,5,95,0,0,315,314,1,0,0,0,315,316,1,0,0,0,316,318,
        1,0,0,0,317,319,5,5,0,0,318,317,1,0,0,0,318,319,1,0,0,0,319,69,1,
        0,0,0,320,349,5,35,0,0,321,322,5,103,0,0,322,323,5,115,0,0,323,324,
        5,104,0,0,324,325,5,105,0,0,325,326,5,115,0,0,326,327,5,106,0,0,
        327,350,5,115,0,0,328,329,5,103,0,0,329,330,5,115,0,0,330,331,5,
        104,0,0,331,332,5,105,0,0,332,335,5,115,0,0,333,334,5,107,0,0,334,
        336,5,115,0,0,335,333,1,0,0,0,335,336,1,0,0,0,336,350,1,0,0,0,337,
        339,5,108,0,0,338,340,5,115,0,0,339,338,1,0,0,0,340,341,1,0,0,0,
        341,339,1,0,0,0,341,342,1,0,0,0,342,350,1,0,0,0,343,350,5,109,0,
        0,344,345,5,110,0,0,345,350,5,115,0,0,346,347,5,111,0,0,347,350,
        5,115,0,0,348,350,1,0,0,0,349,321,1,0,0,0,349,328,1,0,0,0,349,337,
        1,0,0,0,349,343,1,0,0,0,349,344,1,0,0,0,349,346,1,0,0,0,349,348,
        1,0,0,0,350,352,1,0,0,0,351,353,5,113,0,0,352,351,1,0,0,0,352,353,
        1,0,0,0,353,355,1,0,0,0,354,356,5,5,0,0,355,354,1,0,0,0,355,356,
        1,0,0,0,356,71,1,0,0,0,357,394,5,36,0,0,358,359,5,124,0,0,359,395,
        5,132,0,0,360,361,5,121,0,0,361,395,5,132,0,0,362,363,5,126,0,0,
        363,395,5,132,0,0,364,365,5,125,0,0,365,395,5,132,0,0,366,367,5,
        127,0,0,367,395,5,132,0,0,368,369,5,123,0,0,369,395,5,132,0,0,370,
        371,5,129,0,0,371,395,5,130,0,0,372,373,5,128,0,0,373,374,5,130,
        0,0,374,375,5,131,0,0,375,395,5,132,0,0,376,377,5,122,0,0,377,381,
        5,132,0,0,378,379,5,132,0,0,379,380,5,118,0,0,380,382,5,132,0,0,
        381,378,1,0,0,0,382,383,1,0,0,0,383,381,1,0,0,0,383,384,1,0,0,0,
        384,395,1,0,0,0,385,386,5,120,0,0,386,390,5,132,0,0,387,388,5,132,
        0,0,388,389,5,118,0,0,389,391,5,132,0,0,390,387,1,0,0,0,391,392,
        1,0,0,0,392,390,1,0,0,0,392,393,1,0,0,0,393,395,1,0,0,0,394,358,
        1,0,0,0,394,360,1,0,0,0,394,362,1,0,0,0,394,364,1,0,0,0,394,366,
        1,0,0,0,394,368,1,0,0,0,394,370,1,0,0,0,394,372,1,0,0,0,394,376,
        1,0,0,0,394,385,1,0,0,0,395,397,1,0,0,0,396,398,5,117,0,0,397,396,
        1,0,0,0,397,398,1,0,0,0,398,400,1,0,0,0,399,401,5,5,0,0,400,399,
        1,0,0,0,400,401,1,0,0,0,401,73,1,0,0,0,57,80,86,95,107,121,123,128,
        140,142,149,169,173,176,179,183,186,189,194,197,202,205,211,214,
        217,224,227,230,235,238,250,253,256,261,264,268,271,278,281,284,
        289,292,297,302,306,311,315,318,335,341,349,352,355,383,392,394,
        397,400
    ]

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>", "'_EXIT'", "'_QUIT'", "'_SPOOL'", 
                     "'_SLEEP'", "'_USE'", "<INVALID>", "'_ASSERT'", "'_START'", 
                     "'_LOAD'", "'_HOST'", "'_IF'", "'_ENDIF'", "'_SET'", 
                     "'_LOOP'", "'_WHENEVER'", "'_SSH'", "'_JOB'", "<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>", 
                     "<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>", 
                     "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>", 
                     "<INVALID>", "'='", "<INVALID>", "'CREATE'", "'SHOW'", 
                     "'SET'", "'START'", "'WAIT'", "'SHUTDOWN'", "'ABORT'", 
                     "'TIMER'", "'REGISTER'", "'DEREGISTER'", "'WORKER'", 
                     "'TO'" ]

    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", 
                      "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_EXPRESSION", "LOAD_SPACE", 
                      "LOAD_OPTION", "LOAD_EXPRESSION", "LOAD_CRLF", "START_SPACE", 
                      "START_EXPRESSION", "START_CRLF", "HOST_SPACE", "HOST_TAG", 
                      "HOST_BLOCK", "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_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_TO", "JOB_EXPRESSION" ]

    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

    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" ]

    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
    INT=37
    DECIMAL=38
    String=39
    HTTP_COMMENT=40
    DIVIDE=41
    SP=42
    HttpMethod=43
    HTTP_CLOSE=44
    HttpRequestTarget=45
    HttpHeaderFieldName=46
    FIELD_COLON=47
    FIELD_CRLF=48
    HttpHeaderFieldValue=49
    HttpHeaderFieldValueEnd=50
    HttpMultipartBoundaryEnd=51
    HttpMultipartBoundary=52
    HttpMessageBodyComment=53
    HttpMessageBodyOperate=54
    ScriptBlock=55
    EchoBlock=56
    ASSERT_SPACE=57
    ASSERT_OPEN=58
    ASSERT_CLOSE=59
    ASSERT_EXPRESSION=60
    LOAD_SPACE=61
    LOAD_OPTION=62
    LOAD_EXPRESSION=63
    LOAD_CRLF=64
    START_SPACE=65
    START_EXPRESSION=66
    START_CRLF=67
    HOST_SPACE=68
    HOST_TAG=69
    HOST_BLOCK=70
    IF_SPACE=71
    IF_OPEN=72
    IF_CLOSE=73
    IF_EXPRESSION=74
    LOOP_SEMICOLON=75
    LOOP_SPACE=76
    LOOP_BEGIN=77
    LOOP_UNTIL=78
    LOOP_OPEN=79
    LOOP_CLOSE=80
    LOOP_BREAK=81
    LOOP_END=82
    LOOP_CONTINUE=83
    LOOP_EXPRESSION=84
    LOOP_CRLF=85
    WHENEVER_SPACE=86
    WHENEVER_EXITCODE=87
    WHENEVER_ERROR=88
    WHENEVER_SEMICOLON=89
    WHENEVER_CONTINUE=90
    WHENEVER_EXIT=91
    WHENEVER_CRLF=92
    SET_SPACE=93
    SET_EXPRESSION=94
    SET_SEMICOLON=95
    SET_AT=96
    SET_CRLF=97
    USE_API=98
    USE_SQL=99
    USE_SPACE=100
    USE_SEMICOLON=101
    USE_CRLF=102
    SSH_CONNECT=103
    SSH_WITH=104
    SSH_USER=105
    SSH_KEYFILE=106
    SSH_PASSWORD=107
    SSH_EXECUTE=108
    SSH_DISCONNECT=109
    SSH_SAVE=110
    SSH_RESTORE=111
    SSH_SPACE=112
    SSH_SEMICOLON=113
    SSH_CRLF=114
    SSH_EXPRESSION=115
    JOB_SPACE=116
    JOB_SEMICOLON=117
    JOB_EQUAL=118
    JOB_CRLF=119
    JOB_CREATE=120
    JOB_SHOW=121
    JOB_SET=122
    JOB_START=123
    JOB_WAIT=124
    JOB_SHUTDOWN=125
    JOB_ABORT=126
    JOB_TIMER=127
    JOB_REGISTER=128
    JOB_DEREGISTER=129
    JOB_WORKER=130
    JOB_TO=131
    JOB_EXPRESSION=132

    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 = 74
            self.command()
            self.state = 75
            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 = 80
            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]:
                self.enterOuterAlt(localctx, 1)
                self.state = 77
                self.baseCommand()
                pass
            elif token in [1]:
                self.enterOuterAlt(localctx, 2)
                self.state = 78
                self.http()
                pass
            elif token in [-1]:
                self.enterOuterAlt(localctx, 3)
                self.state = 79
                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 = 82
            self.match(APIParser.HTTP_OPEN)
            self.state = 86
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==5:
                self.state = 83
                self.match(APIParser.CRLF)
                self.state = 88
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 89
            self.httpMessage()
            self.state = 90
            _la = self._input.LA(1)
            if not(_la==-1 or _la==44):
                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 = 92
            self.httpRequestLine()
            self.state = 93
            self.httpHeaderFields()
            self.state = 95
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if ((_la) & ~0x3f) == 0 and ((1 << _la) & 22518547892666400) != 0:
                self.state = 94
                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 = 97
            self.httpMethod()
            self.state = 98
            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 = 100
            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 = 102
            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 = 107
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==46:
                self.state = 104
                self.httpHeaderField()
                self.state = 109
                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 = 110
            self.httpHeaderFieldName()
            self.state = 111
            self.match(APIParser.FIELD_COLON)
            self.state = 112
            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 = 114
            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 = 116
            self.match(APIParser.HttpHeaderFieldValue)
            self.state = 117
            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 = 121 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 121
                self._errHandler.sync(self)
                token = self._input.LA(1)
                if token in [52]:
                    self.state = 119
                    self.httpMultipart()
                    pass
                elif token in [5, 39, 54]:
                    self.state = 120
                    self.httpMessageBodyContent()
                    pass
                else:
                    raise NoViableAltException(self)

                self.state = 123 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (((_la) & ~0x3f) == 0 and ((1 << _la) & 22518547892666400) != 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 = 126 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 125
                self.httpMultipartBoundary()
                self.state = 128 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==52):
                    break

            self.state = 130
            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 = 132
            self.httpBoundaryDelimiter()
            self.state = 133
            self.httpHeaderFields()
            self.state = 134
            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 = 136
            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 = 140 
            self._errHandler.sync(self)
            _alt = 1
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt == 1:
                    self.state = 140
                    self._errHandler.sync(self)
                    token = self._input.LA(1)
                    if token in [54]:
                        self.state = 138
                        self.httpMessageBodyOperate()
                        pass
                    elif token in [5, 39]:
                        self.state = 139
                        self.httpMessageBodyOther()
                        pass
                    else:
                        raise NoViableAltException(self)


                else:
                    raise NoViableAltException(self)
                self.state = 142 
                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 = 144
            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 = 147 
            self._errHandler.sync(self)
            _alt = 1
            while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:
                if _alt == 1:
                    self.state = 146
                    _la = self._input.LA(1)
                    if not(_la==5 or _la==39):
                        self._errHandler.recoverInline(self)
                    else:
                        self._errHandler.reportMatch(self)
                        self.consume()

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


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


            self.state = 179
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 178
                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 = 181
            self.match(APIParser.QUIT)
            self.state = 183
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==37:
                self.state = 182
                self.match(APIParser.INT)


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


            self.state = 189
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 188
                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 = 191
            self.match(APIParser.USE)
            self.state = 192
            _la = self._input.LA(1)
            if not(_la==98 or _la==99):
                self._errHandler.recoverInline(self)
            else:
                self._errHandler.reportMatch(self)
                self.consume()
            self.state = 194
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==101:
                self.state = 193
                self.match(APIParser.USE_SEMICOLON)


            self.state = 197
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 196
                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 = 199
            self.match(APIParser.SLEEP)
            self.state = 200
            self.match(APIParser.INT)
            self.state = 202
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 201
                self.match(APIParser.SEMICOLON)


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


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


    class 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 = 207
            self.match(APIParser.START)
            self.state = 209 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 208
                self.match(APIParser.START_EXPRESSION)
                self.state = 211 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==66):
                    break

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


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


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


    class LoadContext(ParserRuleContext):
        __slots__ = 'parser'

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

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

        def LOAD_OPTION(self):
            return self.getToken(APIParser.LOAD_OPTION, 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 SEMICOLON(self):
            return self.getToken(APIParser.SEMICOLON, 0)

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

        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 = 219
            self.match(APIParser.LOAD)
            self.state = 220
            self.match(APIParser.LOAD_OPTION)
            self.state = 222 
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while True:
                self.state = 221
                self.match(APIParser.LOAD_EXPRESSION)
                self.state = 224 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if not (_la==63):
                    break

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


            self.state = 230
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 229
                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 SEMICOLON(self):
            return self.getToken(APIParser.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 = 232
            self.match(APIParser.ASSERT)
            self.state = 233
            self.match(APIParser.ASSERT_EXPRESSION)
            self.state = 235
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 234
                self.match(APIParser.SEMICOLON)


            self.state = 238
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 237
                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_BLOCK(self):
            return self.getToken(APIParser.HOST_BLOCK, 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)
        try:
            self.enterOuterAlt(localctx, 1)
            self.state = 240
            self.match(APIParser.HOST)
            self.state = 241
            self.match(APIParser.HOST_BLOCK)
        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 = 243
            self.match(APIParser.LOOP)
            self.state = 250
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [81]:
                self.state = 244
                self.match(APIParser.LOOP_BREAK)
                pass
            elif token in [82]:
                self.state = 245
                self.match(APIParser.LOOP_END)
                pass
            elif token in [83]:
                self.state = 246
                self.match(APIParser.LOOP_CONTINUE)
                pass
            elif token in [77]:
                self.state = 247
                self.match(APIParser.LOOP_BEGIN)
                self.state = 248
                self.match(APIParser.LOOP_UNTIL)
                self.state = 249
                self.match(APIParser.LOOP_EXPRESSION)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 253
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==75:
                self.state = 252
                self.match(APIParser.LOOP_SEMICOLON)


            self.state = 256
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 255
                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 = 258
            self.match(APIParser.IF)
            self.state = 259
            self.match(APIParser.IF_EXPRESSION)
            self.state = 261
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 260
                self.match(APIParser.SEMICOLON)


            self.state = 264
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 263
                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 = 266
            self.match(APIParser.ENDIF)
            self.state = 268
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 267
                self.match(APIParser.SEMICOLON)


            self.state = 271
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 270
                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 = 273
            self.match(APIParser.WHENEVER)
            self.state = 274
            self.match(APIParser.WHENEVER_ERROR)
            self.state = 278
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [90]:
                self.state = 275
                self.match(APIParser.WHENEVER_CONTINUE)
                pass
            elif token in [91]:
                self.state = 276
                self.match(APIParser.WHENEVER_EXIT)
                self.state = 277
                self.match(APIParser.WHENEVER_EXITCODE)
                pass
            else:
                raise NoViableAltException(self)

            self.state = 281
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==89:
                self.state = 280
                self.match(APIParser.WHENEVER_SEMICOLON)


            self.state = 284
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 283
                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 = 286
            self.match(APIParser.SPOOL)
            self.state = 287
            self.match(APIParser.String)
            self.state = 289
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==7:
                self.state = 288
                self.match(APIParser.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 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 = 294
            self.match(APIParser.ECHO_OPEN)
            self.state = 295
            self.match(APIParser.EchoBlock)
            self.state = 297
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,41,self._ctx)
            if la_ == 1:
                self.state = 296
                _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 = 299
            self.match(APIParser.SCRIPT_OPEN)
            self.state = 300
            self.match(APIParser.ScriptBlock)
            self.state = 302
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 301
                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 = 304
            self.match(APIParser.SET)
            self.state = 306
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==96:
                self.state = 305
                self.match(APIParser.SET_AT)


            self.state = 311
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            while _la==94:
                self.state = 308
                self.match(APIParser.SET_EXPRESSION)
                self.state = 313
                self._errHandler.sync(self)
                _la = self._input.LA(1)

            self.state = 315
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==95:
                self.state = 314
                self.match(APIParser.SET_SEMICOLON)


            self.state = 318
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 317
                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 SSH_PASSWORD(self):
            return self.getToken(APIParser.SSH_PASSWORD, 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 = 320
            self.match(APIParser.SSH)
            self.state = 349
            self._errHandler.sync(self)
            la_ = self._interp.adaptivePredict(self._input,49,self._ctx)
            if la_ == 1:
                self.state = 321
                self.match(APIParser.SSH_CONNECT)
                self.state = 322
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 323
                self.match(APIParser.SSH_WITH)
                self.state = 324
                self.match(APIParser.SSH_USER)
                self.state = 325
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 326
                self.match(APIParser.SSH_KEYFILE)
                self.state = 327
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 2:
                self.state = 328
                self.match(APIParser.SSH_CONNECT)
                self.state = 329
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 330
                self.match(APIParser.SSH_WITH)
                self.state = 331
                self.match(APIParser.SSH_USER)
                self.state = 332
                self.match(APIParser.SSH_EXPRESSION)
                self.state = 335
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                if _la==107:
                    self.state = 333
                    self.match(APIParser.SSH_PASSWORD)
                    self.state = 334
                    self.match(APIParser.SSH_EXPRESSION)


                pass

            elif la_ == 3:
                self.state = 337
                self.match(APIParser.SSH_EXECUTE)
                self.state = 339 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 338
                    self.match(APIParser.SSH_EXPRESSION)
                    self.state = 341 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==115):
                        break

                pass

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

            elif la_ == 5:
                self.state = 344
                self.match(APIParser.SSH_SAVE)
                self.state = 345
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 6:
                self.state = 346
                self.match(APIParser.SSH_RESTORE)
                self.state = 347
                self.match(APIParser.SSH_EXPRESSION)
                pass

            elif la_ == 7:
                pass


            self.state = 352
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==113:
                self.state = 351
                self.match(APIParser.SSH_SEMICOLON)


            self.state = 355
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==5:
                self.state = 354
                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_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_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 = 357
            self.match(APIParser.JOB)
            self.state = 394
            self._errHandler.sync(self)
            token = self._input.LA(1)
            if token in [124]:
                self.state = 358
                self.match(APIParser.JOB_WAIT)
                self.state = 359
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [121]:
                self.state = 360
                self.match(APIParser.JOB_SHOW)
                self.state = 361
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [126]:
                self.state = 362
                self.match(APIParser.JOB_ABORT)
                self.state = 363
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [125]:
                self.state = 364
                self.match(APIParser.JOB_SHUTDOWN)
                self.state = 365
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [127]:
                self.state = 366
                self.match(APIParser.JOB_TIMER)
                self.state = 367
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [123]:
                self.state = 368
                self.match(APIParser.JOB_START)
                self.state = 369
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [129]:
                self.state = 370
                self.match(APIParser.JOB_DEREGISTER)
                self.state = 371
                self.match(APIParser.JOB_WORKER)
                pass
            elif token in [128]:
                self.state = 372
                self.match(APIParser.JOB_REGISTER)
                self.state = 373
                self.match(APIParser.JOB_WORKER)
                self.state = 374
                self.match(APIParser.JOB_TO)
                self.state = 375
                self.match(APIParser.JOB_EXPRESSION)
                pass
            elif token in [122]:
                self.state = 376
                self.match(APIParser.JOB_SET)
                self.state = 377
                self.match(APIParser.JOB_EXPRESSION)
                self.state = 381 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 378
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 379
                    self.match(APIParser.JOB_EQUAL)
                    self.state = 380
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 383 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==132):
                        break

                pass
            elif token in [120]:
                self.state = 385
                self.match(APIParser.JOB_CREATE)
                self.state = 386
                self.match(APIParser.JOB_EXPRESSION)
                self.state = 390 
                self._errHandler.sync(self)
                _la = self._input.LA(1)
                while True:
                    self.state = 387
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 388
                    self.match(APIParser.JOB_EQUAL)
                    self.state = 389
                    self.match(APIParser.JOB_EXPRESSION)
                    self.state = 392 
                    self._errHandler.sync(self)
                    _la = self._input.LA(1)
                    if not (_la==132):
                        break

                pass
            else:
                raise NoViableAltException(self)

            self.state = 397
            self._errHandler.sync(self)
            _la = self._input.LA(1)
            if _la==117:
                self.state = 396
                self.match(APIParser.JOB_SEMICOLON)


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





