Skip to content

Commit ff5d85c

Browse files
committed
Add basic assignment block
1 parent fb16873 commit ff5d85c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/web/js/transpile.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,21 @@ else:
7373
<input type="%txt"/>
7474
</inputs>
7575
</block-definition>
76+
77+
<block-definition category="Variables" s="%'a' = %'b'" type="reporter">
78+
<header />
79+
<code>&lt;#1&gt; = &lt;#2&gt;</code>
80+
<translations />
81+
<inputs>
82+
<input type="%upvar">name</input>
83+
<input type="%n">val</input>
84+
</inputs>
85+
<script>
86+
<block s="doReport">
87+
<l />
88+
</block>
89+
</script>
90+
</block-definition>
7691
<block-definition category="Numbers" s="%'a' + %'b'" type="reporter">
7792
<header/>
7893
<code>(&lt;#1&gt; + &lt;#2&gt;)</code>
@@ -101,6 +116,7 @@ else:
101116
</block>
102117
</script>
103118
</block-definition>
119+
104120
<block-definition category="Numbers" s="%'a' / %'b'" type="reporter">
105121
<header/>
106122
<code>(&lt;#1&gt; / &lt;#2&gt;)</code>

0 commit comments

Comments
 (0)