UNPKG

@eurostat/vtl-editor

Version:
17 lines (16 loc) 577 B
import { Lexer, Parser } from "antlr4ts"; 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[]; }