antlr-ng
Version:
Next generation ANTLR Tool
11 lines (10 loc) • 481 B
TypeScript
import { type CharStream, type Token } from "antlr4ng";
import { GrammarAST } from "../tool/ast/GrammarAST.js";
import type { IGrammarASTAdaptor } from "../types.js";
export declare class GrammarASTAdaptor implements IGrammarASTAdaptor {
private inputStream?;
constructor(inputStream?: CharStream);
create(token: Token): GrammarAST;
create(tokenType: number, text: string): GrammarAST;
create(tokenType: number, fromToken?: Token, text?: string): GrammarAST;
}