oxc-project / playground

Oxc Playground
https://oxc-playground.netlify.app/
MIT License
3 stars 2 forks source link

Add Control Flow Graph visualization to the playground. #9

Open rzvxa opened 2 months ago

rzvxa commented 2 months ago

I hope we can adopt this project for this purpose, It's been my go-to visualizer, and having it in the playground would be a nice to have feature.

I've self-assigned it but if anyone decides to pick it up sooner feel free to do so, and announce it in this issue before starting to work on it.
Boshen commented 2 months ago

We can build this in the new playground https://github.com/oxc-project/playground

IWANABETHATGUY commented 2 weeks ago

Here is biome cfg visualization, image https://biomejs.dev/playground/?code=ZgB1AG4AYwB0AGkAbwBuACAAdABlAHMAdAAoACkAIAB7AAoAIAAgAGwAZQB0ACAAYQAgAD0AIAAxADAAOwAKAAoAIAAgAGkAZgAgACgAYQApACAAewAKACAAIAAgACAAYwBvAG4AcwBvAGwAZQAuAGwAbwBnACgAJwB0AGUAcwB0ACcAKQAKACAAIAB9ACAAZQBsAHMAZQAgAHsACgAgACAAIAAgAGMAbwBuAHMAbwBsAGUALgBsAG8AZwAoACcAZABmAGoAYQBpAGYAagBlAGkAbwBhAGoAZgBpAG8AYQB3AGoAaQBvACcAKQAKACAAIAB9AAoAfQA%3D

IWANABETHATGUY commented 2 weeks ago

They use mermaid to display the control flow graph https://github.com/rome/tools/pull/2969/files