@iotize/tap-scripts
Version:
IoTize Tap scripts
263 lines (262 loc) • 10.5 kB
TypeScript
import { ParseTreeVisitor } from "antlr4ts/tree/ParseTreeVisitor";
import { ProgContext } from "./IoTizeTestParser";
import { LineContext } from "./IoTizeTestParser";
import { LabelLineContext } from "./IoTizeTestParser";
import { LabelNameContext } from "./IoTizeTestParser";
import { InstructionLineContext } from "./IoTizeTestParser";
import { InstructionContext } from "./IoTizeTestParser";
import { CcomInstructionContext } from "./IoTizeTestParser";
import { GotoInstructionContext } from "./IoTizeTestParser";
import { GotoTypeContext } from "./IoTizeTestParser";
import { CheckInstructionContext } from "./IoTizeTestParser";
import { ComparisonContext } from "./IoTizeTestParser";
import { ComparisonRightOperandContext } from "./IoTizeTestParser";
import { NumberArrayContext } from "./IoTizeTestParser";
import { Comp_opContext } from "./IoTizeTestParser";
import { DisplayInstructionsContext } from "./IoTizeTestParser";
import { LoginInstructionContext } from "./IoTizeTestParser";
import { LogoutInstructionContext } from "./IoTizeTestParser";
import { OutputInstructionContext } from "./IoTizeTestParser";
import { ConnectionInstructionsContext } from "./IoTizeTestParser";
import { WaitInstructionContext } from "./IoTizeTestParser";
import { Lwm2mInstructionContext } from "./IoTizeTestParser";
import { FWMinCheckInstructionContext } from "./IoTizeTestParser";
import { FWMaxCheckInstructionContext } from "./IoTizeTestParser";
import { ResponseLengthContext } from "./IoTizeTestParser";
import { Lwm2mMethodContext } from "./IoTizeTestParser";
import { Lwm2mPathContext } from "./IoTizeTestParser";
import { Lwm2mParameterContext } from "./IoTizeTestParser";
import { HexArrayContext } from "./IoTizeTestParser";
import { SizeOfContext } from "./IoTizeTestParser";
import { ObjectParameterContext } from "./IoTizeTestParser";
import { EndContext } from "./IoTizeTestParser";
import { EndErrorContext } from "./IoTizeTestParser";
import { HexIntegerContext } from "./IoTizeTestParser";
import { NumberContext } from "./IoTizeTestParser";
import { StringContext } from "./IoTizeTestParser";
import { RestOfLineContext } from "./IoTizeTestParser";
/**
* This interface defines a complete generic visitor for a parse tree produced
* by `IoTizeTestParser`.
*
* @param <Result> The return type of the visit operation. Use `void` for
* operations with no return type.
*/
export interface IoTizeTestVisitor<Result> extends ParseTreeVisitor<Result> {
/**
* Visit a parse tree produced by `IoTizeTestParser.prog`.
* @param ctx the parse tree
* @return the visitor result
*/
visitProg?: (ctx: ProgContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.line`.
* @param ctx the parse tree
* @return the visitor result
*/
visitLine?: (ctx: LineContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.labelLine`.
* @param ctx the parse tree
* @return the visitor result
*/
visitLabelLine?: (ctx: LabelLineContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.labelName`.
* @param ctx the parse tree
* @return the visitor result
*/
visitLabelName?: (ctx: LabelNameContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.instructionLine`.
* @param ctx the parse tree
* @return the visitor result
*/
visitInstructionLine?: (ctx: InstructionLineContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.instruction`.
* @param ctx the parse tree
* @return the visitor result
*/
visitInstruction?: (ctx: InstructionContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.ccomInstruction`.
* @param ctx the parse tree
* @return the visitor result
*/
visitCcomInstruction?: (ctx: CcomInstructionContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.gotoInstruction`.
* @param ctx the parse tree
* @return the visitor result
*/
visitGotoInstruction?: (ctx: GotoInstructionContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.gotoType`.
* @param ctx the parse tree
* @return the visitor result
*/
visitGotoType?: (ctx: GotoTypeContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.checkInstruction`.
* @param ctx the parse tree
* @return the visitor result
*/
visitCheckInstruction?: (ctx: CheckInstructionContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.comparison`.
* @param ctx the parse tree
* @return the visitor result
*/
visitComparison?: (ctx: ComparisonContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.comparisonRightOperand`.
* @param ctx the parse tree
* @return the visitor result
*/
visitComparisonRightOperand?: (ctx: ComparisonRightOperandContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.numberArray`.
* @param ctx the parse tree
* @return the visitor result
*/
visitNumberArray?: (ctx: NumberArrayContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.comp_op`.
* @param ctx the parse tree
* @return the visitor result
*/
visitComp_op?: (ctx: Comp_opContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.displayInstructions`.
* @param ctx the parse tree
* @return the visitor result
*/
visitDisplayInstructions?: (ctx: DisplayInstructionsContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.loginInstruction`.
* @param ctx the parse tree
* @return the visitor result
*/
visitLoginInstruction?: (ctx: LoginInstructionContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.logoutInstruction`.
* @param ctx the parse tree
* @return the visitor result
*/
visitLogoutInstruction?: (ctx: LogoutInstructionContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.outputInstruction`.
* @param ctx the parse tree
* @return the visitor result
*/
visitOutputInstruction?: (ctx: OutputInstructionContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.connectionInstructions`.
* @param ctx the parse tree
* @return the visitor result
*/
visitConnectionInstructions?: (ctx: ConnectionInstructionsContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.waitInstruction`.
* @param ctx the parse tree
* @return the visitor result
*/
visitWaitInstruction?: (ctx: WaitInstructionContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.lwm2mInstruction`.
* @param ctx the parse tree
* @return the visitor result
*/
visitLwm2mInstruction?: (ctx: Lwm2mInstructionContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.fWMinCheckInstruction`.
* @param ctx the parse tree
* @return the visitor result
*/
visitFWMinCheckInstruction?: (ctx: FWMinCheckInstructionContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.fWMaxCheckInstruction`.
* @param ctx the parse tree
* @return the visitor result
*/
visitFWMaxCheckInstruction?: (ctx: FWMaxCheckInstructionContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.responseLength`.
* @param ctx the parse tree
* @return the visitor result
*/
visitResponseLength?: (ctx: ResponseLengthContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.lwm2mMethod`.
* @param ctx the parse tree
* @return the visitor result
*/
visitLwm2mMethod?: (ctx: Lwm2mMethodContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.lwm2mPath`.
* @param ctx the parse tree
* @return the visitor result
*/
visitLwm2mPath?: (ctx: Lwm2mPathContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.lwm2mParameter`.
* @param ctx the parse tree
* @return the visitor result
*/
visitLwm2mParameter?: (ctx: Lwm2mParameterContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.hexArray`.
* @param ctx the parse tree
* @return the visitor result
*/
visitHexArray?: (ctx: HexArrayContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.sizeOf`.
* @param ctx the parse tree
* @return the visitor result
*/
visitSizeOf?: (ctx: SizeOfContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.objectParameter`.
* @param ctx the parse tree
* @return the visitor result
*/
visitObjectParameter?: (ctx: ObjectParameterContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.end`.
* @param ctx the parse tree
* @return the visitor result
*/
visitEnd?: (ctx: EndContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.endError`.
* @param ctx the parse tree
* @return the visitor result
*/
visitEndError?: (ctx: EndErrorContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.hexInteger`.
* @param ctx the parse tree
* @return the visitor result
*/
visitHexInteger?: (ctx: HexIntegerContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.number`.
* @param ctx the parse tree
* @return the visitor result
*/
visitNumber?: (ctx: NumberContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.string`.
* @param ctx the parse tree
* @return the visitor result
*/
visitString?: (ctx: StringContext) => Result;
/**
* Visit a parse tree produced by `IoTizeTestParser.restOfLine`.
* @param ctx the parse tree
* @return the visitor result
*/
visitRestOfLine?: (ctx: RestOfLineContext) => Result;
}