UNPKG

@eagleoutice/flowr-dev

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

19 lines (18 loc) 711 B
import Parser from 'web-tree-sitter'; import type { RParseRequest } from '../../retriever'; import type { SyncParser } from '../../parser'; export declare const DEFAULT_TREE_SITTER_R_WASM_PATH: string; export declare const DEFAULT_TREE_SITTER_WASM_PATH: string; /** * Synchronous and (way) faster alternative to the {@link RShell} using tree-sitter. */ export declare class TreeSitterExecutor implements SyncParser<Parser.Tree> { readonly name = "tree-sitter"; readonly parser: Parser; private static language; static initTreeSitter(): Promise<void>; constructor(); rVersion(): Promise<string | 'unknown' | 'none'>; parse(request: RParseRequest): Parser.Tree; close(): void; }