antlr4ng
Version:
Alternative JavaScript/TypeScript runtime for ANTLR4
22 lines (21 loc) • 670 B
TypeScript
import { LexerAction } from "./LexerAction.js";
import { Lexer } from "../Lexer.js";
/**
* Implements the `pushMode` lexer action by calling
* {@link Lexer//pushMode} with the assigned mode
*/
export declare class LexerPushModeAction implements LexerAction {
readonly mode: number;
readonly actionType: number;
isPositionDependent: boolean;
private cachedHashCode;
constructor(mode: number);
/**
* This action is implemented by calling {@link Lexer.pushMode} with the
* value provided by {@link getMode}.
*/
execute(lexer: Lexer): void;
hashCode(): number;
equals(other: unknown): boolean;
toString(): string;
}