This commit is contained in:
milner committed 2026-09-18 16:27:30 +00:00
commit c1403764d9
96 files changed
+39927

No files matched your search

+256
View File
@@ -0,0 +1,256 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 16.0.0 (0)
-->
<!-- Title: grammar Pages: 1 -->
<svg width="431pt" height="334pt"
viewBox="0.00 0.00 431.00 334.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 329.5)">
<title>grammar</title>
<polygon fill="white" stroke="none" points="-4,4 -4,-329.5 427.25,-329.5 427.25,4 -4,4"/>
<text xml:space="preserve" text-anchor="middle" x="211.62" y="-308.2" font-family="Times,serif" font-size="14.00">expr step 2 after: merge T_*,T_+</text>
<!-- nt_S -->
<g id="node1" class="node">
<title>nt_S</title>
<ellipse fill="none" stroke="black" stroke-width="2" cx="22" cy="-131" rx="18" ry="18"/>
<ellipse fill="none" stroke="black" stroke-width="2" cx="22" cy="-131" rx="22" ry="22"/>
<text xml:space="preserve" text-anchor="middle" x="22" y="-127.5" font-family="Helvetica,sans-Serif" font-size="10.00">S</text>
</g>
<!-- pr_3 -->
<g id="node10" class="node">
<title>pr_3</title>
<polygon fill="none" stroke="black" points="141.75,-218 85.25,-218 85.25,-182 141.75,-182 141.75,-218"/>
<text xml:space="preserve" text-anchor="middle" x="113.5" y="-202.5" font-family="Helvetica,sans-Serif" font-size="10.00">T_( S T_)</text>
<text xml:space="preserve" text-anchor="middle" x="113.5" y="-190.5" font-family="Helvetica,sans-Serif" font-size="10.00">p=0.053</text>
</g>
<!-- nt_S&#45;&gt;pr_3 -->
<g id="edge7" class="edge">
<title>nt_S&#45;&gt;pr_3</title>
<path fill="none" stroke="black" d="M39.83,-143.98C51.02,-152.61 66.09,-164.22 79.61,-174.64"/>
<polygon fill="black" stroke="black" points="77.39,-177.35 87.45,-180.69 81.67,-171.81 77.39,-177.35"/>
</g>
<!-- pr_5 -->
<g id="node12" class="node">
<title>pr_5</title>
<polygon fill="none" stroke="black" points="140.5,-90 86.5,-90 86.5,-54 140.5,-54 140.5,-90"/>
<text xml:space="preserve" text-anchor="middle" x="113.5" y="-74.5" font-family="Helvetica,sans-Serif" font-size="10.00">T_b</text>
<text xml:space="preserve" text-anchor="middle" x="113.5" y="-62.5" font-family="Helvetica,sans-Serif" font-size="10.00">p=0.789</text>
</g>
<!-- nt_S&#45;&gt;pr_5 -->
<g id="edge13" class="edge">
<title>nt_S&#45;&gt;pr_5</title>
<path fill="none" stroke="black" d="M40.68,-119.34C50.89,-112.61 64.11,-103.9 76.42,-95.78"/>
<polygon fill="black" stroke="black" points="78.34,-98.71 84.76,-90.28 74.49,-92.87 78.34,-98.71"/>
</g>
<!-- pr_7 -->
<g id="node14" class="node">
<title>pr_7</title>
<polygon fill="none" stroke="black" points="140.5,-36 86.5,-36 86.5,0 140.5,0 140.5,-36"/>
<text xml:space="preserve" text-anchor="middle" x="113.5" y="-20.5" font-family="Helvetica,sans-Serif" font-size="10.00">a</text>
<text xml:space="preserve" text-anchor="middle" x="113.5" y="-8.5" font-family="Helvetica,sans-Serif" font-size="10.00">p=0.053</text>
</g>
<!-- nt_S&#45;&gt;pr_7 -->
<g id="edge17" class="edge">
<title>nt_S&#45;&gt;pr_7</title>
<path fill="none" stroke="black" d="M34.83,-112.9C46.79,-95.04 66.19,-67.26 85.25,-45 85.41,-44.82 85.57,-44.63 85.72,-44.45"/>
<polygon fill="black" stroke="black" points="88.09,-47.04 92.3,-37.32 82.95,-42.3 88.09,-47.04"/>
</g>
<!-- pr_8 -->
<g id="node15" class="node">
<title>pr_8</title>
<polygon fill="none" stroke="black" points="140.5,-156 86.5,-156 86.5,-120 140.5,-120 140.5,-156"/>
<text xml:space="preserve" text-anchor="middle" x="113.5" y="-140.5" font-family="Helvetica,sans-Serif" font-size="10.00">S T_* S</text>
<text xml:space="preserve" text-anchor="middle" x="113.5" y="-128.5" font-family="Helvetica,sans-Serif" font-size="10.00">p=0.105</text>
</g>
<!-- nt_S&#45;&gt;pr_8 -->
<g id="edge19" class="edge">
<title>nt_S&#45;&gt;pr_8</title>
<path fill="none" stroke="black" d="M44.21,-132.66C53.37,-133.38 64.38,-134.24 74.85,-135.06"/>
<polygon fill="black" stroke="black" points="74.57,-138.54 84.81,-135.83 75.12,-131.57 74.57,-138.54"/>
</g>
<!-- nt_T__ -->
<g id="node2" class="node">
<title>nt_T__</title>
<ellipse fill="none" stroke="red" stroke-width="2.5" cx="210" cy="-175" rx="27" ry="18"/>
<text xml:space="preserve" text-anchor="middle" x="210" y="-171.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">T_*</text>
</g>
<!-- pr_0 -->
<g id="node7" class="node">
<title>pr_0</title>
<polygon fill="none" stroke="red" stroke-width="2.5" points="328,-193 274,-193 274,-157 328,-157 328,-193"/>
<text xml:space="preserve" text-anchor="middle" x="301" y="-177.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">*</text>
<text xml:space="preserve" text-anchor="middle" x="301" y="-165.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">p=0.500</text>
</g>
<!-- nt_T__&#45;&gt;pr_0 -->
<g id="edge1" class="edge">
<title>nt_T__&#45;&gt;pr_0</title>
<path fill="none" stroke="black" d="M238.19,-175C245.61,-175 253.78,-175 261.7,-175"/>
<polygon fill="black" stroke="black" points="261.47,-178.5 271.47,-175 261.47,-171.5 261.47,-178.5"/>
</g>
<!-- pr_1 -->
<g id="node8" class="node">
<title>pr_1</title>
<polygon fill="none" stroke="black" points="328,-139 274,-139 274,-103 328,-103 328,-139"/>
<text xml:space="preserve" text-anchor="middle" x="301" y="-123.5" font-family="Helvetica,sans-Serif" font-size="10.00">)</text>
<text xml:space="preserve" text-anchor="middle" x="301" y="-111.5" font-family="Helvetica,sans-Serif" font-size="10.00">p=1.000</text>
</g>
<!-- nt_T__&#45;&gt;pr_1 -->
<g id="edge3" class="edge">
<title>nt_T__&#45;&gt;pr_1</title>
<path fill="none" stroke="black" d="M231.2,-162.75C240.95,-156.83 252.96,-149.54 264.2,-142.72"/>
<polygon fill="black" stroke="black" points="265.77,-145.86 272.51,-137.68 262.14,-139.88 265.77,-145.86"/>
</g>
<!-- pr_4 -->
<g id="node11" class="node">
<title>pr_4</title>
<polygon fill="none" stroke="red" stroke-width="2.5" points="328,-301 274,-301 274,-265 328,-265 328,-301"/>
<text xml:space="preserve" text-anchor="middle" x="301" y="-285.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">+</text>
<text xml:space="preserve" text-anchor="middle" x="301" y="-273.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="red">p=0.500</text>
</g>
<!-- nt_T__&#45;&gt;pr_4 -->
<g id="edge11" class="edge">
<title>nt_T__&#45;&gt;pr_4</title>
<path fill="none" stroke="black" d="M223.29,-191.85C234.44,-206.9 251.66,-229.59 273.68,-255.31"/>
<polygon fill="black" stroke="black" points="270.82,-257.35 280.01,-262.62 276.11,-252.77 270.82,-257.35"/>
</g>
<!-- pr_6 -->
<g id="node13" class="node">
<title>pr_6</title>
<polygon fill="none" stroke="black" points="328,-247 274,-247 274,-211 328,-211 328,-247"/>
<text xml:space="preserve" text-anchor="middle" x="301" y="-231.5" font-family="Helvetica,sans-Serif" font-size="10.00">(</text>
<text xml:space="preserve" text-anchor="middle" x="301" y="-219.5" font-family="Helvetica,sans-Serif" font-size="10.00">p=1.000</text>
</g>
<!-- nt_T__&#45;&gt;pr_6 -->
<g id="edge15" class="edge">
<title>nt_T__&#45;&gt;pr_6</title>
<path fill="none" stroke="black" d="M231.2,-187.25C240.95,-193.17 252.96,-200.46 264.2,-207.28"/>
<polygon fill="black" stroke="black" points="262.14,-210.12 272.51,-212.32 265.77,-204.14 262.14,-210.12"/>
</g>
<!-- nt_T_b -->
<g id="node3" class="node">
<title>nt_T_b</title>
<ellipse fill="none" stroke="black" cx="210" cy="-72" rx="27" ry="18"/>
<text xml:space="preserve" text-anchor="middle" x="210" y="-68.5" font-family="Helvetica,sans-Serif" font-size="10.00">T_b</text>
</g>
<!-- pr_2 -->
<g id="node9" class="node">
<title>pr_2</title>
<polygon fill="none" stroke="black" points="328,-85 274,-85 274,-49 328,-49 328,-85"/>
<text xml:space="preserve" text-anchor="middle" x="301" y="-69.5" font-family="Helvetica,sans-Serif" font-size="10.00">b</text>
<text xml:space="preserve" text-anchor="middle" x="301" y="-57.5" font-family="Helvetica,sans-Serif" font-size="10.00">p=1.000</text>
</g>
<!-- nt_T_b&#45;&gt;pr_2 -->
<g id="edge5" class="edge">
<title>nt_T_b&#45;&gt;pr_2</title>
<path fill="none" stroke="black" d="M237.22,-70.53C245.12,-70.08 253.94,-69.59 262.43,-69.11"/>
<polygon fill="black" stroke="black" points="262.36,-72.62 272.15,-68.56 261.97,-65.63 262.36,-72.62"/>
</g>
<!-- tm__ -->
<g id="node4" class="node">
<title>tm__</title>
<text xml:space="preserve" text-anchor="middle" x="396.25" y="-198.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="#666666">+</text>
</g>
<!-- tm_a -->
<g id="node5" class="node">
<title>tm_a</title>
<text xml:space="preserve" text-anchor="middle" x="210" y="-14.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="#666666">a</text>
</g>
<!-- tm_b -->
<g id="node6" class="node">
<title>tm_b</title>
<text xml:space="preserve" text-anchor="middle" x="396.25" y="-63.5" font-family="Helvetica,sans-Serif" font-size="10.00" fill="#666666">b</text>
</g>
<!-- pr_0&#45;&gt;tm__ -->
<g id="edge2" class="edge">
<title>pr_0&#45;&gt;tm__</title>
<path fill="none" stroke="black" d="M328.97,-182.81C338.19,-185.48 348.67,-188.51 358.53,-191.37"/>
<polygon fill="black" stroke="black" points="357.27,-194.65 367.85,-194.07 359.22,-187.92 357.27,-194.65"/>
<text xml:space="preserve" text-anchor="middle" x="348.62" y="-190.45" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_1&#45;&gt;tm__ -->
<g id="edge4" class="edge">
<title>pr_1&#45;&gt;tm__</title>
<path fill="none" stroke="black" d="M323.16,-139.38C335.98,-150.51 352.49,-164.86 366.49,-177.01"/>
<polygon fill="black" stroke="black" points="363.83,-179.34 373.67,-183.26 368.42,-174.06 363.83,-179.34"/>
<text xml:space="preserve" text-anchor="middle" x="348.62" y="-163.45" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_2&#45;&gt;tm_b -->
<g id="edge6" class="edge">
<title>pr_2&#45;&gt;tm_b</title>
<path fill="none" stroke="black" d="M328.47,-67C337.68,-67 348.19,-67 358.11,-67"/>
<polygon fill="black" stroke="black" points="357.84,-70.5 367.84,-67 357.84,-63.5 357.84,-70.5"/>
<text xml:space="preserve" text-anchor="middle" x="348.62" y="-68.95" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_3&#45;&gt;nt_S -->
<g id="edge9" class="edge">
<title>pr_3&#45;&gt;nt_S</title>
<path fill="none" stroke="black" d="M84.85,-189.36C77.08,-185.72 68.88,-181.23 62,-176 55.1,-170.75 48.53,-164.11 42.82,-157.55"/>
<polygon fill="black" stroke="black" points="45.64,-155.47 36.58,-149.97 40.24,-159.92 45.64,-155.47"/>
<text xml:space="preserve" text-anchor="middle" x="64.62" y="-181.44" font-family="Helvetica,sans-Serif" font-size="9.00">2</text>
</g>
<!-- pr_3&#45;&gt;nt_T__ -->
<g id="edge8" class="edge">
<title>pr_3&#45;&gt;nt_T__</title>
<path fill="none" stroke="black" d="M142.09,-192.7C151.67,-190.17 162.56,-187.29 172.73,-184.6"/>
<polygon fill="black" stroke="black" points="173.57,-187.99 182.34,-182.05 171.78,-181.23 173.57,-187.99"/>
<text xml:space="preserve" text-anchor="middle" x="162.38" y="-189.45" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_3&#45;&gt;nt_T__ -->
<g id="edge10" class="edge">
<title>pr_3&#45;&gt;nt_T__</title>
<path fill="none" stroke="black" d="M139.21,-181.69C145.59,-177.91 152.67,-174.48 159.75,-172.5 163.38,-171.48 167.21,-170.89 171.08,-170.61"/>
<polygon fill="black" stroke="black" points="171.08,-174.11 181.07,-170.56 171.05,-167.11 171.08,-174.11"/>
<text xml:space="preserve" text-anchor="middle" x="162.38" y="-174.45" font-family="Helvetica,sans-Serif" font-size="9.00">3</text>
</g>
<!-- pr_4&#45;&gt;tm__ -->
<g id="edge12" class="edge">
<title>pr_4&#45;&gt;tm__</title>
<path fill="none" stroke="black" d="M324.1,-263.8C336.65,-252.91 352.51,-239.13 366.07,-227.35"/>
<polygon fill="black" stroke="black" points="368.19,-230.14 373.44,-220.94 363.6,-224.86 368.19,-230.14"/>
<text xml:space="preserve" text-anchor="middle" x="348.62" y="-244.45" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_5&#45;&gt;nt_T_b -->
<g id="edge14" class="edge">
<title>pr_5&#45;&gt;nt_T_b</title>
<path fill="none" stroke="black" d="M140.82,-72C150.35,-72 161.29,-72 171.58,-72"/>
<polygon fill="black" stroke="black" points="171.3,-75.5 181.3,-72 171.3,-68.5 171.3,-75.5"/>
<text xml:space="preserve" text-anchor="middle" x="162.38" y="-73.95" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_6&#45;&gt;tm__ -->
<g id="edge16" class="edge">
<title>pr_6&#45;&gt;tm__</title>
<path fill="none" stroke="black" d="M328.47,-221.34C337.78,-218.64 348.42,-215.56 358.43,-212.66"/>
<polygon fill="black" stroke="black" points="359.27,-216.06 367.9,-209.92 357.32,-209.34 359.27,-216.06"/>
<text xml:space="preserve" text-anchor="middle" x="348.62" y="-217.45" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_7&#45;&gt;tm_a -->
<g id="edge18" class="edge">
<title>pr_7&#45;&gt;tm_a</title>
<path fill="none" stroke="black" d="M140.82,-18C150.43,-18 161.47,-18 171.84,-18"/>
<polygon fill="black" stroke="black" points="171.63,-21.5 181.63,-18 171.63,-14.5 171.63,-21.5"/>
<text xml:space="preserve" text-anchor="middle" x="162.38" y="-19.95" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_8&#45;&gt;nt_S -->
<g id="edge20" class="edge">
<title>pr_8&#45;&gt;nt_S</title>
<path fill="none" stroke="black" d="M86.23,-125.27C80.14,-122.88 73.58,-120.74 67.25,-119.5 62.74,-118.61 58,-118.72 53.37,-119.41"/>
<polygon fill="black" stroke="black" points="52.63,-115.99 43.74,-121.75 54.28,-122.79 52.63,-115.99"/>
<text xml:space="preserve" text-anchor="middle" x="64.62" y="-121.45" font-family="Helvetica,sans-Serif" font-size="9.00">1</text>
</g>
<!-- pr_8&#45;&gt;nt_S -->
<g id="edge22" class="edge">
<title>pr_8&#45;&gt;nt_S</title>
<path fill="none" stroke="black" d="M86.23,-142.23C78.41,-142.91 69.84,-143.08 62,-142 59.35,-141.63 56.64,-141.13 53.92,-140.55"/>
<polygon fill="black" stroke="black" points="55.04,-137.22 44.48,-138.16 53.32,-144.01 55.04,-137.22"/>
<text xml:space="preserve" text-anchor="middle" x="64.62" y="-144.4" font-family="Helvetica,sans-Serif" font-size="9.00">3</text>
</g>
<!-- pr_8&#45;&gt;nt_T__ -->
<g id="edge21" class="edge">
<title>pr_8&#45;&gt;nt_T__</title>
<path fill="none" stroke="black" d="M140.8,-147.37C148.62,-150.23 157.18,-153.43 165,-156.5 168.47,-157.86 172.08,-159.32 175.67,-160.79"/>
<polygon fill="black" stroke="black" points="174.27,-164 184.85,-164.61 176.96,-157.54 174.27,-164"/>
<text xml:space="preserve" text-anchor="middle" x="162.38" y="-158.45" font-family="Helvetica,sans-Serif" font-size="9.00">2</text>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB