@eagleoutice/flowr 2.1.11 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/benchmark/slicer.d.ts +5 -12
  2. package/benchmark/slicer.js +46 -28
  3. package/cli/benchmark-app.d.ts +2 -0
  4. package/cli/benchmark-app.js +2 -1
  5. package/cli/benchmark-helper-app.d.ts +2 -0
  6. package/cli/benchmark-helper-app.js +2 -2
  7. package/cli/common/options.js +3 -1
  8. package/cli/flowr-main-options.js +36 -2
  9. package/cli/flowr.d.ts +6 -0
  10. package/cli/flowr.js +51 -24
  11. package/cli/repl/commands/repl-cfg.js +2 -4
  12. package/cli/repl/commands/repl-dataflow.js +2 -4
  13. package/cli/repl/commands/repl-execute.d.ts +2 -2
  14. package/cli/repl/commands/repl-execute.js +15 -5
  15. package/cli/repl/commands/repl-lineage.js +2 -4
  16. package/cli/repl/commands/repl-main.d.ts +2 -2
  17. package/cli/repl/commands/repl-normalize.js +2 -4
  18. package/cli/repl/commands/repl-parse.js +2 -4
  19. package/cli/repl/commands/repl-query.js +7 -9
  20. package/cli/repl/commands/repl-version.d.ts +5 -4
  21. package/cli/repl/commands/repl-version.js +10 -9
  22. package/cli/repl/core.d.ts +5 -5
  23. package/cli/repl/core.js +8 -12
  24. package/cli/repl/print-version.d.ts +2 -2
  25. package/cli/repl/print-version.js +3 -3
  26. package/cli/repl/server/connection.d.ts +3 -3
  27. package/cli/repl/server/connection.js +6 -8
  28. package/cli/repl/server/messages/message-hello.js +2 -1
  29. package/cli/repl/server/server.d.ts +4 -3
  30. package/cli/repl/server/server.js +7 -5
  31. package/cli/slicer-app.js +1 -1
  32. package/config.d.ts +36 -4
  33. package/config.js +30 -1
  34. package/core/pipeline-executor.d.ts +1 -1
  35. package/core/pipeline-executor.js +1 -1
  36. package/core/steps/all/core/00-parse.d.ts +4 -18
  37. package/core/steps/all/core/00-parse.js +2 -11
  38. package/core/steps/all/core/01-parse-tree-sitter.d.ts +23 -0
  39. package/core/steps/all/core/01-parse-tree-sitter.js +19 -0
  40. package/core/steps/all/core/10-normalize.d.ts +3 -2
  41. package/core/steps/all/core/10-normalize.js +1 -0
  42. package/core/steps/all/core/11-normalize-tree-sitter.d.ts +25 -0
  43. package/core/steps/all/core/11-normalize-tree-sitter.js +27 -0
  44. package/core/steps/all/core/20-dataflow.d.ts +2 -0
  45. package/core/steps/all/core/20-dataflow.js +1 -1
  46. package/core/steps/pipeline/default-pipelines.d.ts +374 -23
  47. package/core/steps/pipeline/default-pipelines.js +48 -4
  48. package/dataflow/extractor.d.ts +2 -1
  49. package/dataflow/extractor.js +2 -1
  50. package/dataflow/graph/vertex.d.ts +4 -0
  51. package/dataflow/graph/vertex.js +3 -1
  52. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +6 -5
  53. package/dataflow/processor.d.ts +2 -0
  54. package/documentation/doc-util/doc-auto-gen.js +2 -1
  55. package/documentation/doc-util/doc-cfg.js +1 -1
  56. package/documentation/doc-util/doc-dfg.js +3 -3
  57. package/documentation/doc-util/doc-files.d.ts +1 -0
  58. package/documentation/doc-util/doc-files.js +4 -0
  59. package/documentation/doc-util/doc-normalized-ast.js +2 -3
  60. package/documentation/doc-util/doc-query.js +2 -2
  61. package/documentation/doc-util/doc-search.d.ts +25 -0
  62. package/documentation/doc-util/doc-search.js +121 -0
  63. package/documentation/doc-util/doc-types.d.ts +10 -2
  64. package/documentation/doc-util/doc-types.js +81 -3
  65. package/documentation/print-dataflow-graph-wiki.js +16 -16
  66. package/documentation/print-engines-wiki.d.ts +1 -0
  67. package/documentation/print-engines-wiki.js +82 -0
  68. package/documentation/print-interface-wiki.js +30 -20
  69. package/documentation/print-normalized-ast-wiki.js +5 -5
  70. package/documentation/print-query-wiki.js +22 -0
  71. package/documentation/print-search-wiki.d.ts +1 -0
  72. package/documentation/print-search-wiki.js +74 -0
  73. package/package.json +10 -5
  74. package/queries/base-query-format.d.ts +2 -2
  75. package/queries/catalog/call-context-query/call-context-query-executor.d.ts +1 -1
  76. package/queries/catalog/call-context-query/call-context-query-executor.js +1 -1
  77. package/queries/catalog/cluster-query/cluster-query-executor.d.ts +1 -1
  78. package/queries/catalog/cluster-query/cluster-query-executor.js +1 -1
  79. package/queries/catalog/cluster-query/cluster-query-format.d.ts +5 -4
  80. package/queries/catalog/dataflow-query/dataflow-query-executor.d.ts +1 -1
  81. package/queries/catalog/dataflow-query/dataflow-query-executor.js +1 -1
  82. package/queries/catalog/dataflow-query/dataflow-query-format.d.ts +5 -4
  83. package/queries/catalog/dependencies-query/dependencies-query-executor.js +2 -2
  84. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +5 -4
  85. package/queries/catalog/id-map-query/id-map-query-format.d.ts +5 -4
  86. package/queries/catalog/lineage-query/lineage-query-executor.d.ts +1 -1
  87. package/queries/catalog/lineage-query/lineage-query-executor.js +1 -1
  88. package/queries/catalog/lineage-query/lineage-query-format.d.ts +5 -4
  89. package/queries/catalog/normalized-ast-query/normalized-ast-query-format.d.ts +5 -4
  90. package/queries/catalog/search-query/search-query-executor.d.ts +3 -0
  91. package/queries/catalog/search-query/search-query-executor.js +27 -0
  92. package/queries/catalog/search-query/search-query-format.d.ts +73 -0
  93. package/queries/catalog/search-query/search-query-format.js +29 -0
  94. package/queries/catalog/static-slice-query/static-slice-query-executor.d.ts +1 -1
  95. package/queries/catalog/static-slice-query/static-slice-query-executor.js +1 -1
  96. package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +5 -4
  97. package/queries/query.d.ts +95 -29
  98. package/queries/query.js +3 -1
  99. package/r-bridge/lang-4.x/ast/model/type.d.ts +4 -0
  100. package/r-bridge/lang-4.x/ast/model/type.js +3 -1
  101. package/r-bridge/lang-4.x/ast/parser/json/parser.d.ts +4 -2
  102. package/r-bridge/lang-4.x/ast/parser/json/parser.js +5 -0
  103. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +18 -0
  104. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +57 -0
  105. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.d.ts +3 -0
  106. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +541 -0
  107. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-types.d.ts +35 -0
  108. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-types.js +40 -0
  109. package/r-bridge/parser.d.ts +32 -0
  110. package/r-bridge/parser.js +14 -0
  111. package/r-bridge/shell-executor.d.ts +37 -1
  112. package/r-bridge/shell-executor.js +39 -0
  113. package/r-bridge/shell.d.ts +12 -6
  114. package/r-bridge/shell.js +15 -6
  115. package/search/flowr-search-builder.d.ts +193 -0
  116. package/search/flowr-search-builder.js +192 -0
  117. package/search/flowr-search-executor.d.ts +9 -0
  118. package/search/flowr-search-executor.js +16 -0
  119. package/search/flowr-search-filters.d.ts +74 -0
  120. package/search/flowr-search-filters.js +136 -0
  121. package/search/flowr-search-printer.d.ts +10 -0
  122. package/search/flowr-search-printer.js +85 -0
  123. package/search/flowr-search-traverse.d.ts +7 -0
  124. package/search/flowr-search-traverse.js +12 -0
  125. package/search/flowr-search.d.ts +58 -0
  126. package/search/flowr-search.js +29 -0
  127. package/search/search-executor/search-generators.d.ts +37 -0
  128. package/search/search-executor/search-generators.js +64 -0
  129. package/search/search-executor/search-transformer.d.ts +57 -0
  130. package/search/search-executor/search-transformer.js +99 -0
  131. package/search/search-optimizer/search-optimizer.d.ts +9 -0
  132. package/search/search-optimizer/search-optimizer.js +89 -0
  133. package/statistics/statistics.js +1 -1
  134. package/util/arrays.d.ts +13 -0
  135. package/util/assert.d.ts +1 -1
  136. package/util/mermaid/mermaid.js +17 -0
  137. package/util/version.js +1 -1
@@ -1,8 +1,14 @@
1
+ /**
2
+ * Contains the default pipeline for working with flowr
3
+ */
4
+ import type { PipelineInput } from './pipeline';
5
+ import type { KnownParser, Parser } from '../../../r-bridge/parser';
6
+ import { PipelineExecutor } from '../../pipeline-executor';
1
7
  export declare const DEFAULT_SLICING_PIPELINE: import("./pipeline").Pipeline<{
2
8
  readonly name: "parse";
3
9
  readonly humanReadableName: "parse with R shell";
4
10
  readonly description: "Parse the given R code into an AST";
5
- readonly processor: (_results: unknown, input: Partial<import("../all/core/00-parse").ParseRequiredInput>) => Promise<import("../all/core/00-parse").ParseStepOutput>;
11
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<string>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<string>>;
6
12
  readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
7
13
  readonly printer: {
8
14
  readonly 0: typeof import("../../print/print").internalPrinter;
@@ -10,16 +16,16 @@ export declare const DEFAULT_SLICING_PIPELINE: import("./pipeline").Pipeline<{
10
16
  (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
11
17
  (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
12
18
  };
13
- readonly 5: ({ parsed }: import("../all/core/00-parse").ParseStepOutput, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
19
+ readonly 5: ({ parsed }: import("../../../r-bridge/parser").ParseStepOutput<string>, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
14
20
  };
15
21
  readonly dependencies: readonly [];
16
- readonly requiredInput: import("../all/core/00-parse").ParseRequiredInput;
22
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<string>;
17
23
  } | {
18
24
  readonly name: "normalize";
19
25
  readonly humanReadableName: "normalize";
20
26
  readonly description: "Normalize the AST to flowR's AST";
21
27
  readonly processor: (results: {
22
- parse?: import("../all/core/00-parse").ParseStepOutput;
28
+ parse?: import("../../../r-bridge/parser").ParseStepOutput<string>;
23
29
  }, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/model").RNode<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
24
30
  readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
25
31
  readonly printer: {
@@ -37,6 +43,7 @@ export declare const DEFAULT_SLICING_PIPELINE: import("./pipeline").Pipeline<{
37
43
  normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
38
44
  }, input: {
39
45
  request?: import("../../../r-bridge/retriever").RParseRequests;
46
+ parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
40
47
  }) => import("../../../dataflow/info").DataflowInformation;
41
48
  readonly requiredInput: {};
42
49
  readonly name: "dataflow";
@@ -83,7 +90,7 @@ export declare const DEFAULT_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline"
83
90
  readonly name: "parse";
84
91
  readonly humanReadableName: "parse with R shell";
85
92
  readonly description: "Parse the given R code into an AST";
86
- readonly processor: (_results: unknown, input: Partial<import("../all/core/00-parse").ParseRequiredInput>) => Promise<import("../all/core/00-parse").ParseStepOutput>;
93
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<string>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<string>>;
87
94
  readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
88
95
  readonly printer: {
89
96
  readonly 0: typeof import("../../print/print").internalPrinter;
@@ -91,16 +98,16 @@ export declare const DEFAULT_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline"
91
98
  (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
92
99
  (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
93
100
  };
94
- readonly 5: ({ parsed }: import("../all/core/00-parse").ParseStepOutput, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
101
+ readonly 5: ({ parsed }: import("../../../r-bridge/parser").ParseStepOutput<string>, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
95
102
  };
96
103
  readonly dependencies: readonly [];
97
- readonly requiredInput: import("../all/core/00-parse").ParseRequiredInput;
104
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<string>;
98
105
  } | {
99
106
  readonly name: "normalize";
100
107
  readonly humanReadableName: "normalize";
101
108
  readonly description: "Normalize the AST to flowR's AST";
102
109
  readonly processor: (results: {
103
- parse?: import("../all/core/00-parse").ParseStepOutput;
110
+ parse?: import("../../../r-bridge/parser").ParseStepOutput<string>;
104
111
  }, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/model").RNode<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
105
112
  readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
106
113
  readonly printer: {
@@ -118,6 +125,7 @@ export declare const DEFAULT_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline"
118
125
  normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
119
126
  }, input: {
120
127
  request?: import("../../../r-bridge/retriever").RParseRequests;
128
+ parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
121
129
  }) => import("../../../dataflow/info").DataflowInformation;
122
130
  readonly requiredInput: {};
123
131
  readonly name: "dataflow";
@@ -164,7 +172,7 @@ export declare const DEFAULT_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipel
164
172
  readonly name: "parse";
165
173
  readonly humanReadableName: "parse with R shell";
166
174
  readonly description: "Parse the given R code into an AST";
167
- readonly processor: (_results: unknown, input: Partial<import("../all/core/00-parse").ParseRequiredInput>) => Promise<import("../all/core/00-parse").ParseStepOutput>;
175
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<string>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<string>>;
168
176
  readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
169
177
  readonly printer: {
170
178
  readonly 0: typeof import("../../print/print").internalPrinter;
@@ -172,16 +180,16 @@ export declare const DEFAULT_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipel
172
180
  (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
173
181
  (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
174
182
  };
175
- readonly 5: ({ parsed }: import("../all/core/00-parse").ParseStepOutput, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
183
+ readonly 5: ({ parsed }: import("../../../r-bridge/parser").ParseStepOutput<string>, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
176
184
  };
177
185
  readonly dependencies: readonly [];
178
- readonly requiredInput: import("../all/core/00-parse").ParseRequiredInput;
186
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<string>;
179
187
  } | {
180
188
  readonly name: "normalize";
181
189
  readonly humanReadableName: "normalize";
182
190
  readonly description: "Normalize the AST to flowR's AST";
183
191
  readonly processor: (results: {
184
- parse?: import("../all/core/00-parse").ParseStepOutput;
192
+ parse?: import("../../../r-bridge/parser").ParseStepOutput<string>;
185
193
  }, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/model").RNode<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
186
194
  readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
187
195
  readonly printer: {
@@ -199,6 +207,7 @@ export declare const DEFAULT_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipel
199
207
  normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
200
208
  }, input: {
201
209
  request?: import("../../../r-bridge/retriever").RParseRequests;
210
+ parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
202
211
  }) => import("../../../dataflow/info").DataflowInformation;
203
212
  readonly requiredInput: {};
204
213
  readonly name: "dataflow";
@@ -227,11 +236,245 @@ export declare const DEFAULT_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipel
227
236
  readonly dependencies: readonly ["dataflow"];
228
237
  readonly requiredInput: import("../all/static-slicing/00-slice").SliceRequiredInput;
229
238
  }>;
239
+ export declare const TREE_SITTER_SLICING_PIPELINE: import("./pipeline").Pipeline<{
240
+ readonly humanReadableName: "dataflow";
241
+ readonly processor: (results: {
242
+ normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
243
+ }, input: {
244
+ request?: import("../../../r-bridge/retriever").RParseRequests;
245
+ parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
246
+ }) => import("../../../dataflow/info").DataflowInformation;
247
+ readonly requiredInput: {};
248
+ readonly name: "dataflow";
249
+ readonly description: "Construct the dataflow graph";
250
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
251
+ readonly printer: {
252
+ readonly 0: typeof import("../../print/print").internalPrinter;
253
+ readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
254
+ readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
255
+ readonly 3: typeof import("../../print/dataflow-printer").dataflowGraphToMermaid;
256
+ readonly 4: typeof import("../../print/dataflow-printer").dataflowGraphToMermaidUrl;
257
+ };
258
+ readonly dependencies: readonly ["normalize"];
259
+ } | {
260
+ readonly name: "parse";
261
+ readonly humanReadableName: "parse with tree-sitter";
262
+ readonly description: "Parse the given R code into an AST using tree-sitter";
263
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>>;
264
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
265
+ readonly printer: {
266
+ readonly 0: typeof import("../../print/print").internalPrinter;
267
+ readonly 2: {
268
+ (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
269
+ (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
270
+ };
271
+ };
272
+ readonly dependencies: readonly [];
273
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>;
274
+ } | {
275
+ readonly name: "slice";
276
+ readonly humanReadableName: "static slice";
277
+ readonly description: "Calculate the actual static slice from the dataflow graph and the given slicing criteria";
278
+ readonly processor: (results: {
279
+ dataflow?: import("../../../dataflow/info").DataflowInformation;
280
+ normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
281
+ }, input: Partial<import("../all/static-slicing/00-slice").SliceRequiredInput>) => Readonly<import("../../../slicing/static/slicer-types").SliceResult>;
282
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerRequest;
283
+ readonly printer: {
284
+ readonly 0: typeof import("../../print/print").internalPrinter;
285
+ };
286
+ readonly dependencies: readonly ["dataflow"];
287
+ readonly requiredInput: import("../all/static-slicing/00-slice").SliceRequiredInput;
288
+ } | {
289
+ readonly name: "reconstruct";
290
+ readonly humanReadableName: "static code reconstruction";
291
+ readonly description: "Reconstruct R code from the static slice";
292
+ readonly processor: (results: {
293
+ normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
294
+ slice?: import("../../../slicing/static/slicer-types").SliceResult;
295
+ }, input: Partial<import("../all/static-slicing/10-reconstruct").ReconstructRequiredInput>) => import("../../../reconstruct/reconstruct").ReconstructionResult;
296
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerRequest;
297
+ readonly printer: {
298
+ readonly 0: typeof import("../../print/print").internalPrinter;
299
+ };
300
+ readonly dependencies: readonly ["slice"];
301
+ readonly requiredInput: import("../all/static-slicing/10-reconstruct").ReconstructRequiredInput;
302
+ } | {
303
+ readonly name: "normalize";
304
+ readonly humanReadableName: "normalize tree-sitter tree";
305
+ readonly description: "Normalize the AST to flowR's AST";
306
+ readonly processor: (results: {
307
+ "parse"?: import("../all/core/01-parse-tree-sitter").ParseStepOutputTS;
308
+ }, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/model").RNode<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
309
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
310
+ readonly printer: {
311
+ readonly 0: typeof import("../../print/print").internalPrinter;
312
+ readonly 2: typeof import("../../print/normalize-printer").normalizedAstToJson;
313
+ readonly 5: typeof import("../../print/normalize-printer").normalizedAstToQuads;
314
+ readonly 3: typeof import("../../print/normalize-printer").printNormalizedAstToMermaid;
315
+ readonly 4: typeof import("../../print/normalize-printer").printNormalizedAstToMermaidUrl;
316
+ };
317
+ readonly dependencies: readonly ["parse"];
318
+ readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
319
+ }>;
320
+ export declare const TREE_SITTER_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
321
+ readonly humanReadableName: "dataflow";
322
+ readonly processor: (results: {
323
+ normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
324
+ }, input: {
325
+ request?: import("../../../r-bridge/retriever").RParseRequests;
326
+ parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
327
+ }) => import("../../../dataflow/info").DataflowInformation;
328
+ readonly requiredInput: {};
329
+ readonly name: "dataflow";
330
+ readonly description: "Construct the dataflow graph";
331
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
332
+ readonly printer: {
333
+ readonly 0: typeof import("../../print/print").internalPrinter;
334
+ readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
335
+ readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
336
+ readonly 3: typeof import("../../print/dataflow-printer").dataflowGraphToMermaid;
337
+ readonly 4: typeof import("../../print/dataflow-printer").dataflowGraphToMermaidUrl;
338
+ };
339
+ readonly dependencies: readonly ["normalize"];
340
+ } | {
341
+ readonly name: "parse";
342
+ readonly humanReadableName: "parse with tree-sitter";
343
+ readonly description: "Parse the given R code into an AST using tree-sitter";
344
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>>;
345
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
346
+ readonly printer: {
347
+ readonly 0: typeof import("../../print/print").internalPrinter;
348
+ readonly 2: {
349
+ (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
350
+ (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
351
+ };
352
+ };
353
+ readonly dependencies: readonly [];
354
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>;
355
+ } | {
356
+ readonly name: "slice";
357
+ readonly humanReadableName: "static slice";
358
+ readonly description: "Calculate the actual static slice from the dataflow graph and the given slicing criteria";
359
+ readonly processor: (results: {
360
+ dataflow?: import("../../../dataflow/info").DataflowInformation;
361
+ normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
362
+ }, input: Partial<import("../all/static-slicing/00-slice").SliceRequiredInput>) => Readonly<import("../../../slicing/static/slicer-types").SliceResult>;
363
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerRequest;
364
+ readonly printer: {
365
+ readonly 0: typeof import("../../print/print").internalPrinter;
366
+ };
367
+ readonly dependencies: readonly ["dataflow"];
368
+ readonly requiredInput: import("../all/static-slicing/00-slice").SliceRequiredInput;
369
+ } | {
370
+ readonly name: "reconstruct";
371
+ readonly humanReadableName: "static code reconstruction";
372
+ readonly description: "Reconstruct R code from the static slice";
373
+ readonly processor: (results: {
374
+ normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
375
+ slice?: import("../../../slicing/static/slicer-types").SliceResult;
376
+ }, input: Partial<import("../all/static-slicing/10-reconstruct").ReconstructRequiredInput>) => import("../../../reconstruct/reconstruct").ReconstructionResult;
377
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerRequest;
378
+ readonly printer: {
379
+ readonly 0: typeof import("../../print/print").internalPrinter;
380
+ };
381
+ readonly dependencies: readonly ["slice"];
382
+ readonly requiredInput: import("../all/static-slicing/10-reconstruct").ReconstructRequiredInput;
383
+ } | {
384
+ readonly name: "normalize";
385
+ readonly humanReadableName: "normalize tree-sitter tree";
386
+ readonly description: "Normalize the AST to flowR's AST";
387
+ readonly processor: (results: {
388
+ "parse"?: import("../all/core/01-parse-tree-sitter").ParseStepOutputTS;
389
+ }, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/model").RNode<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
390
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
391
+ readonly printer: {
392
+ readonly 0: typeof import("../../print/print").internalPrinter;
393
+ readonly 2: typeof import("../../print/normalize-printer").normalizedAstToJson;
394
+ readonly 5: typeof import("../../print/normalize-printer").normalizedAstToQuads;
395
+ readonly 3: typeof import("../../print/normalize-printer").printNormalizedAstToMermaid;
396
+ readonly 4: typeof import("../../print/normalize-printer").printNormalizedAstToMermaidUrl;
397
+ };
398
+ readonly dependencies: readonly ["parse"];
399
+ readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
400
+ }>;
401
+ export declare const TREE_SITTER_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
402
+ readonly humanReadableName: "dataflow";
403
+ readonly processor: (results: {
404
+ normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
405
+ }, input: {
406
+ request?: import("../../../r-bridge/retriever").RParseRequests;
407
+ parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
408
+ }) => import("../../../dataflow/info").DataflowInformation;
409
+ readonly requiredInput: {};
410
+ readonly name: "dataflow";
411
+ readonly description: "Construct the dataflow graph";
412
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
413
+ readonly printer: {
414
+ readonly 0: typeof import("../../print/print").internalPrinter;
415
+ readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
416
+ readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
417
+ readonly 3: typeof import("../../print/dataflow-printer").dataflowGraphToMermaid;
418
+ readonly 4: typeof import("../../print/dataflow-printer").dataflowGraphToMermaidUrl;
419
+ };
420
+ readonly dependencies: readonly ["normalize"];
421
+ } | {
422
+ readonly name: "parse";
423
+ readonly humanReadableName: "parse with tree-sitter";
424
+ readonly description: "Parse the given R code into an AST using tree-sitter";
425
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>>;
426
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
427
+ readonly printer: {
428
+ readonly 0: typeof import("../../print/print").internalPrinter;
429
+ readonly 2: {
430
+ (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
431
+ (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
432
+ };
433
+ };
434
+ readonly dependencies: readonly [];
435
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>;
436
+ } | {
437
+ readonly name: "slice";
438
+ readonly humanReadableName: "static slice";
439
+ readonly description: "Calculate the actual static slice from the dataflow graph and the given slicing criteria";
440
+ readonly processor: (results: {
441
+ dataflow?: import("../../../dataflow/info").DataflowInformation;
442
+ normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
443
+ }, input: Partial<import("../all/static-slicing/00-slice").SliceRequiredInput>) => Readonly<import("../../../slicing/static/slicer-types").SliceResult>;
444
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerRequest;
445
+ readonly printer: {
446
+ readonly 0: typeof import("../../print/print").internalPrinter;
447
+ };
448
+ readonly dependencies: readonly ["dataflow"];
449
+ readonly requiredInput: import("../all/static-slicing/00-slice").SliceRequiredInput;
450
+ } | {
451
+ readonly name: "normalize";
452
+ readonly humanReadableName: "normalize tree-sitter tree";
453
+ readonly description: "Normalize the AST to flowR's AST";
454
+ readonly processor: (results: {
455
+ "parse"?: import("../all/core/01-parse-tree-sitter").ParseStepOutputTS;
456
+ }, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/model").RNode<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
457
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
458
+ readonly printer: {
459
+ readonly 0: typeof import("../../print/print").internalPrinter;
460
+ readonly 2: typeof import("../../print/normalize-printer").normalizedAstToJson;
461
+ readonly 5: typeof import("../../print/normalize-printer").normalizedAstToQuads;
462
+ readonly 3: typeof import("../../print/normalize-printer").printNormalizedAstToMermaid;
463
+ readonly 4: typeof import("../../print/normalize-printer").printNormalizedAstToMermaidUrl;
464
+ };
465
+ readonly dependencies: readonly ["parse"];
466
+ readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
467
+ }>;
468
+ /**
469
+ * The default pipeline for working with flowr, including the dataflow step,
470
+ * see the {@link DEFAULT_NORMALIZE_PIPELINE} for the pipeline without the dataflow step,
471
+ * and the {@link DEFAULT_SLICE_AND_RECONSTRUCT_PIPELINE} for the pipeline with slicing and reconstructing steps
472
+ */
230
473
  export declare const DEFAULT_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
231
474
  readonly name: "parse";
232
475
  readonly humanReadableName: "parse with R shell";
233
476
  readonly description: "Parse the given R code into an AST";
234
- readonly processor: (_results: unknown, input: Partial<import("../all/core/00-parse").ParseRequiredInput>) => Promise<import("../all/core/00-parse").ParseStepOutput>;
477
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<string>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<string>>;
235
478
  readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
236
479
  readonly printer: {
237
480
  readonly 0: typeof import("../../print/print").internalPrinter;
@@ -239,16 +482,16 @@ export declare const DEFAULT_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
239
482
  (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
240
483
  (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
241
484
  };
242
- readonly 5: ({ parsed }: import("../all/core/00-parse").ParseStepOutput, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
485
+ readonly 5: ({ parsed }: import("../../../r-bridge/parser").ParseStepOutput<string>, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
243
486
  };
244
487
  readonly dependencies: readonly [];
245
- readonly requiredInput: import("../all/core/00-parse").ParseRequiredInput;
488
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<string>;
246
489
  } | {
247
490
  readonly name: "normalize";
248
491
  readonly humanReadableName: "normalize";
249
492
  readonly description: "Normalize the AST to flowR's AST";
250
493
  readonly processor: (results: {
251
- parse?: import("../all/core/00-parse").ParseStepOutput;
494
+ parse?: import("../../../r-bridge/parser").ParseStepOutput<string>;
252
495
  }, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/model").RNode<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
253
496
  readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
254
497
  readonly printer: {
@@ -266,6 +509,7 @@ export declare const DEFAULT_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
266
509
  normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
267
510
  }, input: {
268
511
  request?: import("../../../r-bridge/retriever").RParseRequests;
512
+ parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
269
513
  }) => import("../../../dataflow/info").DataflowInformation;
270
514
  readonly requiredInput: {};
271
515
  readonly name: "dataflow";
@@ -280,11 +524,65 @@ export declare const DEFAULT_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
280
524
  };
281
525
  readonly dependencies: readonly ["normalize"];
282
526
  }>;
527
+ export declare const TREE_SITTER_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
528
+ readonly humanReadableName: "dataflow";
529
+ readonly processor: (results: {
530
+ normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
531
+ }, input: {
532
+ request?: import("../../../r-bridge/retriever").RParseRequests;
533
+ parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
534
+ }) => import("../../../dataflow/info").DataflowInformation;
535
+ readonly requiredInput: {};
536
+ readonly name: "dataflow";
537
+ readonly description: "Construct the dataflow graph";
538
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
539
+ readonly printer: {
540
+ readonly 0: typeof import("../../print/print").internalPrinter;
541
+ readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
542
+ readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
543
+ readonly 3: typeof import("../../print/dataflow-printer").dataflowGraphToMermaid;
544
+ readonly 4: typeof import("../../print/dataflow-printer").dataflowGraphToMermaidUrl;
545
+ };
546
+ readonly dependencies: readonly ["normalize"];
547
+ } | {
548
+ readonly name: "parse";
549
+ readonly humanReadableName: "parse with tree-sitter";
550
+ readonly description: "Parse the given R code into an AST using tree-sitter";
551
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>>;
552
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
553
+ readonly printer: {
554
+ readonly 0: typeof import("../../print/print").internalPrinter;
555
+ readonly 2: {
556
+ (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
557
+ (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
558
+ };
559
+ };
560
+ readonly dependencies: readonly [];
561
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>;
562
+ } | {
563
+ readonly name: "normalize";
564
+ readonly humanReadableName: "normalize tree-sitter tree";
565
+ readonly description: "Normalize the AST to flowR's AST";
566
+ readonly processor: (results: {
567
+ "parse"?: import("../all/core/01-parse-tree-sitter").ParseStepOutputTS;
568
+ }, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/model").RNode<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
569
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
570
+ readonly printer: {
571
+ readonly 0: typeof import("../../print/print").internalPrinter;
572
+ readonly 2: typeof import("../../print/normalize-printer").normalizedAstToJson;
573
+ readonly 5: typeof import("../../print/normalize-printer").normalizedAstToQuads;
574
+ readonly 3: typeof import("../../print/normalize-printer").printNormalizedAstToMermaid;
575
+ readonly 4: typeof import("../../print/normalize-printer").printNormalizedAstToMermaidUrl;
576
+ };
577
+ readonly dependencies: readonly ["parse"];
578
+ readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
579
+ }>;
580
+ /** The pipeline to use when you want to parse and normalize your R file, see {@link DEFAULT_DATAFLOW_PIPELINE} for the additional `dataflow` step */
283
581
  export declare const DEFAULT_NORMALIZE_PIPELINE: import("./pipeline").Pipeline<{
284
582
  readonly name: "parse";
285
583
  readonly humanReadableName: "parse with R shell";
286
584
  readonly description: "Parse the given R code into an AST";
287
- readonly processor: (_results: unknown, input: Partial<import("../all/core/00-parse").ParseRequiredInput>) => Promise<import("../all/core/00-parse").ParseStepOutput>;
585
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<string>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<string>>;
288
586
  readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
289
587
  readonly printer: {
290
588
  readonly 0: typeof import("../../print/print").internalPrinter;
@@ -292,16 +590,49 @@ export declare const DEFAULT_NORMALIZE_PIPELINE: import("./pipeline").Pipeline<{
292
590
  (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
293
591
  (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
294
592
  };
295
- readonly 5: ({ parsed }: import("../all/core/00-parse").ParseStepOutput, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
593
+ readonly 5: ({ parsed }: import("../../../r-bridge/parser").ParseStepOutput<string>, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
296
594
  };
297
595
  readonly dependencies: readonly [];
298
- readonly requiredInput: import("../all/core/00-parse").ParseRequiredInput;
596
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<string>;
299
597
  } | {
300
598
  readonly name: "normalize";
301
599
  readonly humanReadableName: "normalize";
302
600
  readonly description: "Normalize the AST to flowR's AST";
303
601
  readonly processor: (results: {
304
- parse?: import("../all/core/00-parse").ParseStepOutput;
602
+ parse?: import("../../../r-bridge/parser").ParseStepOutput<string>;
603
+ }, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/model").RNode<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
604
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
605
+ readonly printer: {
606
+ readonly 0: typeof import("../../print/print").internalPrinter;
607
+ readonly 2: typeof import("../../print/normalize-printer").normalizedAstToJson;
608
+ readonly 5: typeof import("../../print/normalize-printer").normalizedAstToQuads;
609
+ readonly 3: typeof import("../../print/normalize-printer").printNormalizedAstToMermaid;
610
+ readonly 4: typeof import("../../print/normalize-printer").printNormalizedAstToMermaidUrl;
611
+ };
612
+ readonly dependencies: readonly ["parse"];
613
+ readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
614
+ }>;
615
+ export declare const TREE_SITTER_NORMALIZE_PIPELINE: import("./pipeline").Pipeline<{
616
+ readonly name: "parse";
617
+ readonly humanReadableName: "parse with tree-sitter";
618
+ readonly description: "Parse the given R code into an AST using tree-sitter";
619
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>>;
620
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
621
+ readonly printer: {
622
+ readonly 0: typeof import("../../print/print").internalPrinter;
623
+ readonly 2: {
624
+ (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
625
+ (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
626
+ };
627
+ };
628
+ readonly dependencies: readonly [];
629
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>;
630
+ } | {
631
+ readonly name: "normalize";
632
+ readonly humanReadableName: "normalize tree-sitter tree";
633
+ readonly description: "Normalize the AST to flowR's AST";
634
+ readonly processor: (results: {
635
+ "parse"?: import("../all/core/01-parse-tree-sitter").ParseStepOutputTS;
305
636
  }, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/model").RNode<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
306
637
  readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
307
638
  readonly printer: {
@@ -318,7 +649,24 @@ export declare const DEFAULT_PARSE_PIPELINE: import("./pipeline").Pipeline<{
318
649
  readonly name: "parse";
319
650
  readonly humanReadableName: "parse with R shell";
320
651
  readonly description: "Parse the given R code into an AST";
321
- readonly processor: (_results: unknown, input: Partial<import("../all/core/00-parse").ParseRequiredInput>) => Promise<import("../all/core/00-parse").ParseStepOutput>;
652
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<string>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<string>>;
653
+ readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
654
+ readonly printer: {
655
+ readonly 0: typeof import("../../print/print").internalPrinter;
656
+ readonly 2: {
657
+ (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
658
+ (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
659
+ };
660
+ readonly 5: ({ parsed }: import("../../../r-bridge/parser").ParseStepOutput<string>, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
661
+ };
662
+ readonly dependencies: readonly [];
663
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<string>;
664
+ }>;
665
+ export declare const TREE_SITTER_PARSE_PIPELINE: import("./pipeline").Pipeline<{
666
+ readonly name: "parse";
667
+ readonly humanReadableName: "parse with tree-sitter";
668
+ readonly description: "Parse the given R code into an AST using tree-sitter";
669
+ readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>>;
322
670
  readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
323
671
  readonly printer: {
324
672
  readonly 0: typeof import("../../print/print").internalPrinter;
@@ -326,8 +674,11 @@ export declare const DEFAULT_PARSE_PIPELINE: import("./pipeline").Pipeline<{
326
674
  (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
327
675
  (value: any, replacer?: (number | string)[] | null, space?: string | number): string;
328
676
  };
329
- readonly 5: ({ parsed }: import("../all/core/00-parse").ParseStepOutput, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
330
677
  };
331
678
  readonly dependencies: readonly [];
332
- readonly requiredInput: import("../all/core/00-parse").ParseRequiredInput;
679
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>;
333
680
  }>;
681
+ export declare function createParsePipeline(parser: KnownParser, inputs: Omit<PipelineInput<typeof DEFAULT_PARSE_PIPELINE>, 'parser'>): PipelineExecutor<typeof DEFAULT_PARSE_PIPELINE> | PipelineExecutor<typeof TREE_SITTER_PARSE_PIPELINE>;
682
+ export declare function createSlicePipeline(parser: KnownParser, inputs: Omit<PipelineInput<typeof DEFAULT_SLICING_PIPELINE>, 'parser'>): PipelineExecutor<typeof DEFAULT_SLICING_PIPELINE> | PipelineExecutor<typeof TREE_SITTER_SLICING_PIPELINE>;
683
+ export declare function createNormalizePipeline(parser: KnownParser, inputs: Omit<PipelineInput<typeof DEFAULT_NORMALIZE_PIPELINE>, 'parser'>): PipelineExecutor<typeof DEFAULT_NORMALIZE_PIPELINE> | PipelineExecutor<typeof TREE_SITTER_NORMALIZE_PIPELINE>;
684
+ export declare function createDataflowPipeline(parser: KnownParser, inputs: Omit<PipelineInput<typeof DEFAULT_DATAFLOW_PIPELINE>, 'parser'>): PipelineExecutor<typeof DEFAULT_DATAFLOW_PIPELINE> | PipelineExecutor<typeof TREE_SITTER_DATAFLOW_PIPELINE>;