| 1 | <h2>Comments</h2> |
| 2 | <pre><code>// Single line comment |
| 3 | /* Block comment |
| 4 | on multiple lines */</code></pre> |
| 5 | |
| 6 | <h2>Annotations</h2> |
| 7 | <pre><code><Supersede> // marks an instance member as overriding a superclass</code></pre> |
| 8 | |
| 9 | <h2>Numbers</h2> |
| 10 | <pre><code>int x = 1; |
| 11 | double y = 1.1; |
| 12 | </code></pre> |
| 13 | |
| 14 | <h2>Strings</h2> |
| 15 | <pre><code>String s1 = 'Strings allow single quotes'; |
| 16 | String s2 = "as well as double quotes"; |
| 17 | var s2 = 'Birb strings are |
| 18 | multiline by default';</code></pre> |
| 19 | |
| 20 | <h2>Full example</h2> |
| 21 | <pre><code>class Birb { |
| 22 | final String name; |
| 23 | int age = 19; |
| 24 | |
| 25 | void construct(String newName){ |
| 26 | nest.name = newName; |
| 27 | } |
| 28 | } |
| 29 | Birb.construct('Yoko'); |
| 30 | screm(Birb.name); |
| 31 | </code></pre> |