Debian Codegraph @

examples/prism-nand2tetris-hdl.html

raw symbols SCIP
1 <h2>Comments</h2>
2 <pre><code>// Single line comment
3 /* Multi-line
4 comment */</code></pre>
5
6 <h2>Literal values</h2>
7 <pre><code>0
8 32
9 true
10 false</code></pre>
11
12 <h2>Full example</h2>
13 <pre><code>/*
14 * Checks if two input bits are equal
15 */
16
17 CHIP Eq {
18 IN a, b;
19 OUT out; // True iff a=b
20 PARTS:
21 Xor(a=a, b=b, out=uneq);
22 Not(in=uneq, out=out);
23 }</code></pre>