29 lines
545 B
Java
29 lines
545 B
Java
<p>Note: this component focuses on IchigoJam, which uses a small subset of basic and introduces its own markers.</p>
|
|
|
|
<h2>Comments</h2>
|
|
<pre><code>' This is a comment
|
|
REM This is a remark
|
|
'NoSpaceIsOK
|
|
REMNOSPACE</code></pre>
|
|
|
|
<h2>Strings</h2>
|
|
<pre><code>"This a string."
|
|
"This is a string with ""quotes"" in it."</code></pre>
|
|
|
|
<h2>Numbers</h2>
|
|
<pre><code>42
|
|
3.14159
|
|
-42
|
|
-3.14159
|
|
.5
|
|
10.
|
|
2E10
|
|
4.2E-14
|
|
-3E+2
|
|
#496F726953756B69
|
|
`11100010</code></pre>
|
|
|
|
<h2>IchigoJam Basic example</h2>
|
|
<pre><code>A=0
|
|
FOR I=1 TO 100 : A=A+I : NEXT
|
|
PRINT A</code></pre> |