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