This Visual Studio Code extension allows working with .auto files to visualize automata using Graphviz. It also experimentally supports generating flowcharts from programs written in C, COBOL, and pseudocode.
- Real-time preview of DOT/Graphviz diagrams
- Special focus on automata
- Command to copy as PNG
- Syntax highlighting for
.autoand.dotfiles - Experimental support for Program Chart Designer (flowcharts from C, COBOL, and pseudocode)
- Graphviz included within the extension
- Visual Studio Code 1.60.0 or higher
- The Graphviz
dotbinary is included in the extension; no separate installation required
- Install the extension
- Create or open a file with the
.autoextension, or open files with.c,.cbl,.cobol,.pse, or.pseudoextensions - The extension will automatically display a preview of the diagram, converting supported source files into flowcharts
- Use the context menu or command palette for "Copy as PNG"
digraph pda {
rankdir=LR;
size="8,5"
node [shape = point]; qi
node [shape = circle]; q1 q2 q3
node [shape = doublecircle]; q4
qi -> q1
q1 -> q2 [label="1,\\epsilon\\to\\empty"]
q2 -> q1 [label="\\epsilon,\\epsilon\\toB"]
q1 -> q3 [label="\\epsilon,\\empty\\to$"]
q2 -> q4 [label="0,A\\to\\epsilon"]
q3 -> q4 [label="\\epsilon,B\\toA"]
q4 -> q1 [label="0,$\\to\\epsilon"]
}For a C file (example.c):
int main() {
int x = 0;
if (x < 10) {
x = x + 1;
}
return 0;
}
