File: escapes.graph

package info (click to toggle)
msc-generator 8.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180,484 kB
  • sloc: cpp: 129,931; yacc: 23,655; ansic: 7,464; sh: 5,026; makefile: 948
file content (21 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#https://stackoverflow.com/questions/34294445/how-can-i-use-in-a-label-in-graphviz-using-dot
digraph Quote{
    node [shape="record", style="rounded"];
    edge [style="dashed"];
    
    Explain [label="<0>\\| <1>\\| <2>\\| <3>\"|<res> result"];
    n0 [label="backslash to escape next backslash"];
    n1 [label="backslash"];
    n2 [label="backslash to escape next quote"];
    n3 [label="quote"];
    n4:: \\\";
    
    Explain:0 -> n0;
    Explain:1 -> n1;
    Explain:2 -> n2;
    Explain:3 -> n3;
    Explain:res -> n4;
    
    path [label="\\path\\file.txt"]
    path2:: \\path\\file.txt;
}