UNPKG

@making-sense/antlr-editor

Version:
17 lines (16 loc) 591 B
import { Lexer, Parser } from "@making-sense/antlr4ng"; import { languages } from "monaco-editor"; import { VocabularyPack } from "../utils/vocabularyPack"; export declare class GrammarGraph<L extends Lexer, P extends Parser> { private vocabulary; private readonly tokenizer; private readonly rules; private readonly operators; private readonly keywords; private root; constructor(vocabulary: VocabularyPack<L, P>, grammar: string); private processRaw; private addRule; rootName(): string | undefined; suggestions(): languages.CompletionItem[]; }