Files
regorus/docs/diagram/rule-bodies.svg
Anand Krishnamoorthi aabf329088 Update READEME.md with current status, grammar etc. (#102)
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
2024-01-11 13:12:15 -08:00

107 lines
4.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="455" height="125">
<defs>
<style type="text/css">
@namespace "http://www.w3.org/2000/svg";
.line {fill: none; stroke: #332900; stroke-width: 1;}
.bold-line {stroke: #141000; shape-rendering: crispEdges; stroke-width: 2;}
.thin-line {stroke: #1F1800; shape-rendering: crispEdges}
.filled {fill: #332900; stroke: none;}
text.terminal {font-family: Verdana, Sans-serif;
font-size: 12px;
fill: #141000;
font-weight: bold;
}
text.nonterminal {font-family: Verdana, Sans-serif;
font-size: 12px;
fill: #1A1400;
font-weight: normal;
}
text.regexp {font-family: Verdana, Sans-serif;
font-size: 12px;
fill: #1F1800;
font-weight: normal;
}
rect, circle, polygon {fill: #332900; stroke: #332900;}
rect.terminal {fill: #FFDB4D; stroke: #332900; stroke-width: 1;}
rect.nonterminal {fill: #FFEC9E; stroke: #332900; stroke-width: 1;}
rect.text {fill: none; stroke: none;}
polygon.regexp {fill: #FFF4C7; stroke: #332900; stroke-width: 1;}
</style>
</defs>
<polygon points="9 17 1 13 1 21"/>
<polygon points="17 17 9 13 9 21"/>
<rect x="51" y="3" width="28" height="32" rx="10"/>
<rect x="49"
y="1"
width="28"
height="32"
class="terminal"
rx="10"/>
<text class="terminal" x="59" y="21">if</text>
<rect x="119" y="3" width="28" height="32" rx="10"/>
<rect x="117"
y="1"
width="28"
height="32"
class="terminal"
rx="10"/>
<text class="terminal" x="127" y="21">{</text>
<a xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="#query"
xlink:title="query">
<rect x="167" y="3" width="56" height="32"/>
<rect x="165" y="1" width="56" height="32" class="nonterminal"/>
<text class="nonterminal" x="175" y="21">query</text>
</a>
<rect x="243" y="3" width="28" height="32" rx="10"/>
<rect x="241"
y="1"
width="28"
height="32"
class="terminal"
rx="10"/>
<text class="terminal" x="251" y="21">}</text>
<a xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="#literal-stmt"
xlink:title="literal-stmt">
<rect x="119" y="47" width="90" height="32"/>
<rect x="117" y="45" width="90" height="32" class="nonterminal"/>
<text class="nonterminal" x="127" y="65">literal-stmt</text>
</a>
<rect x="51" y="91" width="28" height="32" rx="10"/>
<rect x="49"
y="89"
width="28"
height="32"
class="terminal"
rx="10"/>
<text class="terminal" x="59" y="109">{</text>
<a xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="#query"
xlink:title="query">
<rect x="99" y="91" width="56" height="32"/>
<rect x="97" y="89" width="56" height="32" class="nonterminal"/>
<text class="nonterminal" x="107" y="109">query</text>
</a>
<rect x="175" y="91" width="28" height="32" rx="10"/>
<rect x="173"
y="89"
width="28"
height="32"
class="terminal"
rx="10"/>
<text class="terminal" x="183" y="109">}</text>
<a xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="#alternatives"
xlink:title="alternatives">
<rect x="331" y="3" width="96" height="32"/>
<rect x="329" y="1" width="96" height="32" class="nonterminal"/>
<text class="nonterminal" x="339" y="21">alternatives</text>
</a>
<path class="line"
d="m17 17 h2 m20 0 h10 m28 0 h10 m20 0 h10 m28 0 h10 m0 0 h10 m56 0 h10 m0 0 h10 m28 0 h10 m-192 0 h20 m172 0 h20 m-212 0 q10 0 10 10 m192 0 q0 -10 10 -10 m-202 10 v24 m192 0 v-24 m-192 24 q0 10 10 10 m172 0 q10 0 10 -10 m-182 10 h10 m90 0 h10 m0 0 h62 m-260 -44 h20 m260 0 h20 m-300 0 q10 0 10 10 m280 0 q0 -10 10 -10 m-290 10 v68 m280 0 v-68 m-280 68 q0 10 10 10 m260 0 q10 0 10 -10 m-270 10 h10 m28 0 h10 m0 0 h10 m56 0 h10 m0 0 h10 m28 0 h10 m0 0 h88 m20 -88 h10 m96 0 h10 m3 0 h-3"/>
<polygon points="445 17 453 13 453 21"/>
<polygon points="445 17 437 13 437 21"/>
</svg>