Simple Code CFG Visualizer
Syntax highlighting and interactive Control Flow Graph (CFG) visualization for the Simple (S) programming language in Visual Studio Code.
Features
- Syntax highlighting for
.slang and .simple files.
- One-click CFG generation from the active editor.
- Interactive graph navigation:
- zoom with the mouse wheel;
- pan by dragging;
- reset the view with a double click.
- Export the generated graph as:
- SVG — a vector image;
- DOT — Graphviz source code.
- Built-in compiler binaries for:
- Windows x64;
- Windows ARM64;
- Linux x64;
- Linux ARM64.
Usage
- Open a
.slang or .simple source file.
- Click Show CFG in the editor title bar, or run Simple: Show CFG from the Command Palette.
- The extension generates the control flow graph and opens it in a separate editor tab.
- Use the buttons in the graph viewer to download SVG or DOT output.
Commands
| Command |
Description |
Simple: Show CFG |
Generates and displays the control flow graph for the active Simple source file. |
Language Support
The extension registers the s-language language ID and associates it with:
Requirements
- Visual Studio Code version
1.125.0 or newer.
Known Limitations
- CFG generation is available only on supported Windows and Linux architectures listed above.
- Large graphs may take noticeable time to generate and render.
| |