Skip to content

Commit

Permalink
Added keywords to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shimakaze-Kan committed Aug 5, 2024
1 parent 0362896 commit 75924a8
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ As a first step, I recommend running the examples located in the `examples` fold
<li><a href="#io-operations">IO Operations</a></li>
<li><a href="#interpreter-instructions">Interpreter Instructions</a></li>
<li><a href="#Importing-Scripts">Importing Scripts</a></li>
<li><a href="#Language-Keywords">Language Keywords</a></li>
</ol>

<h3 id="variables">Variables and Scopes</h3>
Expand Down Expand Up @@ -743,6 +744,48 @@ end
However, the interpreter requires that there are no blank lines between instructions. A double line break is treated as a command to execute the written code fragment. This rule does not apply to scripts imported using the `import` instruction.
<h3 id="Language-Keywords">Language Keywords</h3>
The following are language keywords that should not be used as variable names, function names, parameters, or refbox names:
<table>
<tr>
<td>print</td>
<td>function</td>
<td>refbox</td>
<td>abstract</td>
<td>const</td>
</tr>
<tr>
<td>printInline</td>
<td>return</td>
<td>create</td>
<td>import</td>
<td>wuwei</td>
</tr>
<tr>
<td>if</td>
<td>while</td>
<td>throw</td>
<td>readFile</td>
<td>void</td>
</tr>
<tr>
<td>else</td>
<td>for</td>
<td>guarded</td>
<td>readWholeFile</td>
<td></td>
</tr>
<tr>
<td>input</td>
<td>end</td>
<td>exposed</td>
<td>fileExists</td>
<td></td>
</tr>
</table>
<h3 id="Future-of-the-Project">Future of the Project</h3>
Looking ahead, this language has promising potential for integration into other programs. Much like VBA (Visual Basic for Applications) is used within Excel to automate tasks and extend functionality, this language could serve as an embedded scripting tool in various applications.

0 comments on commit 75924a8

Please sign in to comment.