| 1 | <svg class="railroad-diagram" width="359" height="124" viewBox="0 0 359 124" xmlns="http://www.w3.org/2000/svg"> |
| 2 | <g transform="translate(.5 .5)"> |
| 3 | <g> |
| 4 | <path d="M20 45v20m10 -20v20m-10 -10h20"></path> |
| 5 | </g> |
| 6 | <path d="M40 55h10"></path> |
| 7 | <g class="terminal"> |
| 8 | <path d="M50 55h0"></path> |
| 9 | <path d="M95.5 55h0"></path> |
| 10 | <rect x="50" y="44" width="45.5" height="22" rx="10" ry="10"></rect> |
| 11 | <text x="72.75" y="59">foo</text> |
| 12 | </g> |
| 13 | <path d="M95.5 55h10"></path> |
| 14 | <path d="M105.5 55h10"></path> |
| 15 | <g> |
| 16 | <path d="M115.5 55h0"></path> |
| 17 | <path d="M243.5 55h0"></path> |
| 18 | <rect x="115.5" y="36" width="128" height="68" rx="10" ry="10" class="group-box"></rect> |
| 19 | <g> |
| 20 | <path d="M115.5 55h0"></path> |
| 21 | <path d="M243.5 55h0"></path> |
| 22 | <path d="M115.5 55h20"></path> |
| 23 | <g class="non-terminal"> |
| 24 | <path d="M135.5 55h0"></path> |
| 25 | <path d="M223.5 55h0"></path> |
| 26 | <rect x="135.5" y="44" width="88" height="22"></rect> |
| 27 | <text x="179.5" y="59">option 1</text> |
| 28 | </g> |
| 29 | <path d="M223.5 55h20"></path> |
| 30 | <path d="M115.5 55a10 10 0 0 1 10 10v10a10 10 0 0 0 10 10"></path> |
| 31 | <g class="non-terminal"> |
| 32 | <path d="M135.5 85h8.5"></path> |
| 33 | <path d="M215 85h8.5"></path> |
| 34 | <rect x="144" y="74" width="71" height="22"></rect> |
| 35 | <text x="179.5" y="89">or two</text> |
| 36 | </g> |
| 37 | <path d="M223.5 85a10 10 0 0 0 10 -10v-10a10 10 0 0 1 10 -10"></path> |
| 38 | </g> |
| 39 | <g> |
| 40 | <path d="M115.5 28h0"></path> |
| 41 | <path d="M160.5 28h0"></path> |
| 42 | <text x="138" y="33" class="comment">label</text> |
| 43 | </g> |
| 44 | </g> |
| 45 | <path d="M243.5 55h10"></path> |
| 46 | <path d="M253.5 55h10"></path> |
| 47 | <g class="terminal"> |
| 48 | <path d="M263.5 55h0"></path> |
| 49 | <path d="M309 55h0"></path> |
| 50 | <rect x="263.5" y="44" width="45.5" height="22" rx="10" ry="10"></rect> |
| 51 | <text x="286.25" y="59">bar</text> |
| 52 | </g> |
| 53 | <path d="M309 55h10"></path> |
| 54 | <path d="M 319 55 h 20 m -10 -10 v 20 m 10 -20 v 20"></path> |
| 55 | </g> |
| 56 | <style> |
| 57 | svg { |
| 58 | background-color: hsl(30,20%,95%); |
| 59 | } |
| 60 | path { |
| 61 | stroke-width: 3; |
| 62 | stroke: black; |
| 63 | fill: rgba(0,0,0,0); |
| 64 | } |
| 65 | text { |
| 66 | font: bold 14px monospace; |
| 67 | text-anchor: middle; |
| 68 | white-space: pre; |
| 69 | } |
| 70 | text.diagram-text { |
| 71 | font-size: 12px; |
| 72 | } |
| 73 | text.diagram-arrow { |
| 74 | font-size: 16px; |
| 75 | } |
| 76 | text.label { |
| 77 | text-anchor: start; |
| 78 | } |
| 79 | text.comment { |
| 80 | font: italic 12px monospace; |
| 81 | } |
| 82 | g.non-terminal text { |
| 83 | /*font-style: italic;*/ |
| 84 | } |
| 85 | rect { |
| 86 | stroke-width: 3; |
| 87 | stroke: black; |
| 88 | fill: hsl(120,100%,90%); |
| 89 | } |
| 90 | rect.group-box { |
| 91 | stroke: gray; |
| 92 | stroke-dasharray: 10 5; |
| 93 | fill: none; |
| 94 | } |
| 95 | path.diagram-text { |
| 96 | stroke-width: 3; |
| 97 | stroke: black; |
| 98 | fill: white; |
| 99 | cursor: help; |
| 100 | } |
| 101 | g.diagram-text:hover path.diagram-text { |
| 102 | fill: #eee; |
| 103 | }</style> |
| 104 | </svg> |