
So, I'm trying to read some dot files (that are generated by a tool looking at a perforce depot. Most of the files "read_graphviz" just returns false. So, I started cutting down my test cases to see what's going on. Here's what I found: digraph G { a0 [ label = "//depot/path/to/file_1" ]; a1 [ label = "//depot/path/to/file_2" ]; a0 -> a1 [ color=gray ]; } works great, but digraph G { a0 [ label = "//depot/path/to/file_1#4" ]; a1 [ label = "//depot/path/to/file_2#9" ]; a0 -> a1 [ color=gray ]; } fails. Apparently the DOT reader doesn't like "#"s in quoted strings. :-( Any ideas on an easy way to fix this? I'm looking at the spirit grammar behind the parser and it is less than totally straightforward. Thanks in advance! -- -- Marshall Marshall Clow Idio Software <mailto:marshall@idio.com> It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed, the hands acquire shaking, the shaking becomes a warning. It is by caffeine alone I set my mind in motion.

Hi Marshall, On Jun 19, 2007, at 3:25 PM, Marshall Clow wrote:
So, I'm trying to read some dot files (that are generated by a tool looking at a perforce depot. Most of the files "read_graphviz" just returns false. So, I started cutting down my test cases to see what's going on.
Here's what I found:
digraph G { a0 [ label = "//depot/path/to/file_1" ]; a1 [ label = "//depot/path/to/file_2" ];
a0 -> a1 [ color=gray ]; }
works great, but
digraph G { a0 [ label = "//depot/path/to/file_1#4" ]; a1 [ label = "//depot/path/to/file_2#9" ];
a0 -> a1 [ color=gray ]; }
fails. Apparently the DOT reader doesn't like "#"s in quoted strings. :-(
Thanks for catching this. There was a bug in the part of the graphviz reader that was reading strings. I wasn't even able to get your first example to parse correctly, but now both versions seem to parse just fine. The fix has been checked into CVS. Cheers, ron
participants (2)
-
Marshall Clow
-
Ronald Garcia