normalparsing.dot 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. digraph {
  2. compound=true
  3. fontname="Inconsolata, Consolas"
  4. fontsize=10
  5. margin="0,0"
  6. ranksep=0.2
  7. penwidth=0.5
  8. node [fontname="Inconsolata, Consolas", fontsize=10, penwidth=0.5]
  9. edge [fontname="Inconsolata, Consolas", fontsize=10, arrowhead=normal]
  10. {
  11. node [shape=record, fontsize="8", margin="0.04", height=0.2, color=gray]
  12. normaljson [label="\{|\"|m|s|g|\"|:|\"|H|e|l|l|o|\\|n|W|o|r|l|d|!|\"|,|\"|\\|u|0|0|7|3|t|a|r|s\"|:|1|0|\}"]
  13. {
  14. rank = same
  15. msgstring [label="m|s|g|\\0"]
  16. helloworldstring [label="H|e|l|l|o|\\n|W|o|r|l|d|!|\\0"]
  17. starsstring [label="s|t|a|r|s\\0"]
  18. }
  19. }
  20. subgraph cluster1 {
  21. margin="10,10"
  22. labeljust="left"
  23. label = "Document by Normal Parsing"
  24. style=filled
  25. fillcolor=gray95
  26. node [shape=Mrecord, style=filled, colorscheme=spectral7]
  27. root [label="{object|}", fillcolor=3]
  28. {
  29. msg [label="{string|<a>}", fillcolor=5]
  30. helloworld [label="{string|<a>}", fillcolor=5]
  31. stars [label="{string|<a>}", fillcolor=5]
  32. ten [label="{number|10}", fillcolor=6]
  33. }
  34. }
  35. normaljson -> root [label=" Parse()" lhead="cluster1"]
  36. edge [arrowhead=vee]
  37. root -> { msg; stars }
  38. edge [arrowhead="none"]
  39. msg -> helloworld
  40. stars -> ten
  41. edge [arrowhead=vee, arrowtail=dot, arrowsize=0.5, dir=both, tailclip=false]
  42. msg:a:c -> msgstring:w
  43. helloworld:a:c -> helloworldstring:w
  44. stars:a:c -> starsstring:w
  45. msgstring -> helloworldstring -> starsstring [style=invis]
  46. }