UNPKG

@iotize/tap-scripts

Version:

IoTize Tap scripts

25 lines (24 loc) 1.44 kB
import { ServiceCallType } from '@iotize/tap'; import { ANTLRErrorListener } from 'antlr4ts/ANTLRErrorListener'; import { ANTLRInputStream } from 'antlr4ts/ANTLRInputStream'; import { CommonTokenStream } from 'antlr4ts/CommonTokenStream'; import { RecognitionException } from 'antlr4ts/RecognitionException'; import { Recognizer } from 'antlr4ts/Recognizer'; import { IoTizeTestLexer } from './antlr4/IoTizeTestLexer'; import { IoTizeTestParser, ProgContext } from './antlr4/IoTizeTestParser'; import { ProgInstructions } from './definitions'; import { InstructionListVisitor } from './instruction-list-visitor'; export declare class MyErrorListener implements ANTLRErrorListener<Symbol> { syntaxError<T extends Symbol>(recognizer: Recognizer<T, any>, offendingSymbol: T | undefined, line: number, charPositionInLine: number, msg: string, e: RecognitionException | undefined): void; } export declare class GrammarHelper { constructor(); static createParser(input: string): IoTizeTestParser; static createTree(input: string): ProgContext; static toProgInstructions(content: string): ProgInstructions[]; static getLexer(input: string): IoTizeTestLexer; static getVisitor(): InstructionListVisitor; static toTokenStream(lexer: any): CommonTokenStream; static toStream(input: string): ANTLRInputStream; static toLwm2mRequest(content: string): ServiceCallType<unknown, unknown>; }