66 lines
2.2 KiB
TypeScript
66 lines
2.2 KiB
TypeScript
|
|||
|
|
import { AbstractParseTreeVisitor } from "antlr4ng";
|
||
|
|
|
||
|
|
|
||
|
|
import { DocumentContext } from "./QuixosLockParser.js";
|
||
|
|
import { QuixosEntryContext } from "./QuixosLockParser.js";
|
||
|
|
import { ResourceEntryContext } from "./QuixosLockParser.js";
|
||
|
|
import { ResourceKindContext } from "./QuixosLockParser.js";
|
||
|
|
import { SourceBlockContext } from "./QuixosLockParser.js";
|
||
|
|
import { IdentifierContext } from "./QuixosLockParser.js";
|
||
|
|
import { StringLiteralContext } from "./QuixosLockParser.js";
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This interface defines a complete generic visitor for a parse tree produced
|
||
|
|
* by `QuixosLockParser`.
|
||
|
|
*
|
||
|
|
* @param <Result> The return type of the visit operation. Use `void` for
|
||
|
|
* operations with no return type.
|
||
|
|
*/
|
||
|
|
export class QuixosLockVisitor<Result> extends AbstractParseTreeVisitor<Result> {
|
||
|
|
/**
|
||
|
|
* Visit a parse tree produced by `QuixosLockParser.document`.
|
||
|
|
* @param ctx the parse tree
|
||
|
|
* @return the visitor result
|
||
|
|
*/
|
||
|
|
visitDocument?: (ctx: DocumentContext) => Result;
|
||
|
|
/**
|
||
|
|
* Visit a parse tree produced by `QuixosLockParser.quixosEntry`.
|
||
|
|
* @param ctx the parse tree
|
||
|
|
* @return the visitor result
|
||
|
|
*/
|
||
|
|
visitQuixosEntry?: (ctx: QuixosEntryContext) => Result;
|
||
|
|
/**
|
||
|
|
* Visit a parse tree produced by `QuixosLockParser.resourceEntry`.
|
||
|
|
* @param ctx the parse tree
|
||
|
|
* @return the visitor result
|
||
|
|
*/
|
||
|
|
visitResourceEntry?: (ctx: ResourceEntryContext) => Result;
|
||
|
|
/**
|
||
|
|
* Visit a parse tree produced by `QuixosLockParser.resourceKind`.
|
||
|
|
* @param ctx the parse tree
|
||
|
|
* @return the visitor result
|
||
|
|
*/
|
||
|
|
visitResourceKind?: (ctx: ResourceKindContext) => Result;
|
||
|
|
/**
|
||
|
|
* Visit a parse tree produced by `QuixosLockParser.sourceBlock`.
|
||
|
|
* @param ctx the parse tree
|
||
|
|
* @return the visitor result
|
||
|
|
*/
|
||
|
|
visitSourceBlock?: (ctx: SourceBlockContext) => Result;
|
||
|
|
/**
|
||
|
|
* Visit a parse tree produced by `QuixosLockParser.identifier`.
|
||
|
|
* @param ctx the parse tree
|
||
|
|
* @return the visitor result
|
||
|
|
*/
|
||
|
|
visitIdentifier?: (ctx: IdentifierContext) => Result;
|
||
|
|
/**
|
||
|
|
* Visit a parse tree produced by `QuixosLockParser.stringLiteral`.
|
||
|
|
* @param ctx the parse tree
|
||
|
|
* @return the visitor result
|
||
|
|
*/
|
||
|
|
visitStringLiteral?: (ctx: StringLiteralContext) => Result;
|
||
|
|
}
|
||
|
|
|