Commit 687c7f4
New Parser Backend (Tree-Sitter) (#1221)
* feat: initial tree-sitter setup
* wip: stuff we talked about
* refactor: move tree sitter wasm to git lfs
* wip: lots of work, lots of issues
* refactor: use the recommended name for tree sitter vars
* wip: more work
* feat: a lot more work on supporting tree-sitter types
* feat: support more tree-sitter types
* feat: finished basic tree sitter normalization
* test: automatically test for equality between the two ast variations
* test: check out lfs when testing to fix wasm loading
* test-fix: no that was awful
* feat: full parity between RShell and TS outputs
* refactor: remove dangling true
* feat: separate tree sitter and r shell normalize contexts
* refactor: switch from deprecated external marker
* refactor(tests): avoid ast reparse
* refactor: synchronize step names
* feat: build a facade around rshell and treesitterexecutor
* feat: use the tree sitter executor when sourcing
* refactor: revert an unneeded change
* feat: basic engine config
* refactor: don't enforce dragging string | Tree along
* refactor: cool config stuff (and todo)
* refactor: specify which parsers and parser return types are known
* feat: integrate engine configs into the repl
* wip: todo comment about config parsing
* feat: enable all engines by default in config file
* feat: amend config with commandline args if they have an equivalent
* feat: use specified engine on repl and server
* test-fix: fixed tests oops
* feat: copy tree-sitter binaries into the appropriate locations for build
* refactor: remove todo, this seems to work as-is in all cases
* refactor: clean up benchmark slicer initialization
* feat: allow performance benchmarks to run using tree-sitter
* test: also run slicing tests with tree-sitter
* feat-fix: allow explicit returns in tree-sitter
* feat-fix: unescape backticks for identifiers
* test: also compare asts in slicing tests
* feat-fix: tree-sitter returns
* feat-fix: small fixes for comment issues
* feat-fix: various parity fixes for comment linking
* test: print mermaid urls if tree comparisons fail
* test: skip invalid compare test, see #1209
* test: skip tests with inconsistent comment placement, see #1208
* feat: allow specifying a custom tree-sitter wasm location
* ci: run benchmarks for both parser types
* ci-fix: probably fix benchmarks
* ci-fix: fix uploads and upload graph data as artifact for testing
* doc: use the new naming for the old data
* ci-fix: fixed performance test always running with r-shell
* Revert "doc: use the new naming for the old data"
This reverts commit 5481904.
* ci: use old naming for r-shell suites?
* dep: update nanoid to remove security vulnerability
* ci-fix(flowr-run): pass on arguments
* feat-fix: disallow running arbitrary R code through :execute
* feat-fix: ensureSessionClosed throws if the session was never opened
* dep: update tree-sitter and rebuild tree-sitter-r using tree-sitter cli
* dep: rebuild tree-sitter-r with the most recent version
* dep: use a local version of tree-sitter
* ci: timeout-minutes reduction
* ci: actually check out lfs omg
* refactor: deduplicate r shell execution
* doc(tree-sitter): document implications for flowr
---------
Co-authored-by: Ellpeck <[email protected]>1 parent fb9c3af commit 687c7f4
File tree
95 files changed
+1826
-448
lines changed- .github/workflows
- scripts
- scripts
- src
- benchmark
- cli
- common
- repl
- commands
- server
- messages
- core
- steps
- all/core
- pipeline
- dataflow
- internal/process/functions/call/built-in
- documentation
- doc-util
- r-bridge
- lang-4.x
- ast/parser/json
- tree-sitter
- statistics
- test
- functionality
- _helper
- benchmark
- cli
- dataflow
- graph
- processing-of-elements/multiple-files
- query
- lineage
- r-bridge/lang/ast
- slicing
- pointer-analysis
- static-program-slices
- util
- performance
- system-tests
- wiki
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
95 files changed
+1826
-448
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | | - | |
| 200 | + | |
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| 206 | + | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| 212 | + | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
| |||
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
231 | | - | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
235 | 238 | | |
236 | | - | |
| 239 | + | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
| |||
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | 254 | | |
258 | 255 | | |
259 | 256 | | |
| |||
262 | 259 | | |
263 | 260 | | |
264 | 261 | | |
265 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
270 | | - | |
| 273 | + | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
| |||
280 | 283 | | |
281 | 284 | | |
282 | 285 | | |
283 | | - | |
| 286 | + | |
284 | 287 | | |
285 | 288 | | |
286 | | - | |
287 | | - | |
| 289 | + | |
| 290 | + | |
288 | 291 | | |
289 | | - | |
| 292 | + | |
290 | 293 | | |
291 | 294 | | |
292 | 295 | | |
293 | 296 | | |
294 | | - | |
| 297 | + | |
295 | 298 | | |
296 | 299 | | |
297 | 300 | | |
| |||
304 | 307 | | |
305 | 308 | | |
306 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
307 | 365 | | |
308 | 366 | | |
309 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
263 | | - | |
| 264 | + | |
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
268 | | - | |
| 269 | + | |
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
| |||
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | 288 | | |
294 | 289 | | |
295 | 290 | | |
296 | 291 | | |
297 | 292 | | |
298 | 293 | | |
299 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | | - | |
| 303 | + | |
303 | 304 | | |
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
307 | | - | |
| 308 | + | |
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
| |||
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
320 | | - | |
| 321 | + | |
321 | 322 | | |
322 | 323 | | |
323 | | - | |
324 | | - | |
| 324 | + | |
| 325 | + | |
325 | 326 | | |
326 | | - | |
| 327 | + | |
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
330 | 331 | | |
331 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
332 | 383 | | |
333 | 384 | | |
334 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments