forked from solstice/sols.dev
update docs1
This commit is contained in:
@@ -46,6 +46,8 @@
|
|||||||
<li>Operators: these make up the actual logic of your program. Operators are thing like <code>+</code>, <code>=</code>, or <code>if</code>. (if and while are operators in Solstice.)</li>
|
<li>Operators: these make up the actual logic of your program. Operators are thing like <code>+</code>, <code>=</code>, or <code>if</code>. (if and while are operators in Solstice.)</li>
|
||||||
<li>Code blocks: this is the collection of values, identifiers, and operators, usually in between <code>{</code> and <code>}</code>.</li>
|
<li>Code blocks: this is the collection of values, identifiers, and operators, usually in between <code>{</code> and <code>}</code>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<h3>Comments</h3>
|
||||||
|
<p>You can type <code>//</code> to insert a comment into your program. The rest of your line will be commented out.
|
||||||
<h3>puts</h3>
|
<h3>puts</h3>
|
||||||
<p>The <code>puts</code> command in Solstice is used to print out a value. It is not a function, but a built in operator, similar to <code>+</code> or <code>=</code>.</p>
|
<p>The <code>puts</code> command in Solstice is used to print out a value. It is not a function, but a built in operator, similar to <code>+</code> or <code>=</code>.</p>
|
||||||
<p>Use it like this:</p>
|
<p>Use it like this:</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user