UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

15 lines 828 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.versionReplString = versionReplString; exports.printVersionRepl = printVersionRepl; const repl_version_1 = require("./commands/repl-version"); async function versionReplString(parser) { const version = await (0, repl_version_1.retrieveVersionInformation)(parser); const rVersion = version.r === 'none' ? '' : version.r === 'unknown' ? ', R version unknown' : `, R v${version.r}`; const treeSitterVer = parser.name === 'tree-sitter' ? `, R grammar v${parser.treeSitterVersion()}` : ''; return `flowR repl using flowR v${version.flowr}${rVersion}${treeSitterVer} (${version.engine} engine)`; } async function printVersionRepl(parser) { console.log(await versionReplString(parser)); } //# sourceMappingURL=print-version.js.map