generated docs added
This commit is contained in:
208
doc/doc_files/keywords.html
Normal file
208
doc/doc_files/keywords.html
Normal file
@@ -0,0 +1,208 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
table, th, td { border: 1px solid black; } th, td { padding: 10px; }
|
||||
body { background-color: #064066; color: #FFFFFF; }
|
||||
a { color: #40bfb8; }
|
||||
a::before {
|
||||
content: "---";
|
||||
font-family: monospace, monospace;
|
||||
display: inline-block;
|
||||
margin-right: 6px;
|
||||
color: #064066;
|
||||
}
|
||||
|
||||
.rc_number { color: #800000; }
|
||||
.rc_string { color: green; }
|
||||
.rc_keyword { color: blue; font-weight: bold; }
|
||||
.rc_comment { color: #0A0A0A; }
|
||||
#rc_code { font-family: Consolas,"courier new"; background-color: #f1f1f1; padding: 2px; font-size: 105%; }
|
||||
|
||||
|
||||
ul, #myUL {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#myUL {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.box {
|
||||
cursor: pointer;
|
||||
-webkit-user-select: none; /* Safari 3.1+ */
|
||||
-moz-user-select: none; /* Firefox 2+ */
|
||||
-ms-user-select: none; /* IE 10+ */
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.box::before {
|
||||
content: "[+]";
|
||||
font-family: monospace, monospace;
|
||||
font-weight: bold;
|
||||
color: #40bfb8;
|
||||
display: inline-block;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.box {
|
||||
font-weight: bold;
|
||||
color: #40bfb8;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.check-box::before {
|
||||
content: "[-]";
|
||||
font-family: monospace, monospace;
|
||||
font-weight: bold;
|
||||
//color: dodgerblue;
|
||||
color: #40bfb8;
|
||||
}
|
||||
|
||||
.nested {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
</style>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>RC BASIC Keywords</title>
|
||||
</head>
|
||||
<body>
|
||||
<table style="width: 1449px; height: 792px;" border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><span style="font-weight: bold;"><span style="text-decoration: underline;">KEYWORD</span><br>
|
||||
</span></td>
|
||||
<td><span style="font-weight: bold;">DESCRIPTION<br>
|
||||
</span></td>
|
||||
<td><span style="font-weight: bold;">USAGE<br>
|
||||
</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>INCLUDE</td>
|
||||
<td>Include code from an external file. You can reference environment variables inside the include string with this syntax "${env_var}"</td>
|
||||
<td>INCLUDE <STRING_LITERAL></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>INCLUDE ONCE</td>
|
||||
<td>Tells the compiler to only include the current file once.</td>
|
||||
<td>INCLUDE ONCE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IF | ELSEIF | ELSE | END IF</td>
|
||||
<td>Executes a block of code if an expression is true<br>
|
||||
NOTE: ELSEIF can be substituted for ELSE IF</td>
|
||||
<td>IF <EXPRESSION> THEN<br>
|
||||
.....<br>
|
||||
ELSEIF <EXPRESSION> THEN<br>
|
||||
.....<br>
|
||||
ELSE<br>
|
||||
.....<br>
|
||||
END IF</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 200.75px;">SELECT | CASE | DEFAULT | <br>
|
||||
END SELECT</td>
|
||||
<td>Executes a block of code if a case is equal to the selection case</td>
|
||||
<td>SELECT CASE <EXPRESSION><br>
|
||||
CASE <EXPRESSION><br>
|
||||
.....<br>
|
||||
DEFAULT<br>
|
||||
.....<br>
|
||||
END SELECT</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>DO | LOOP | UNTIL | WHILE</td>
|
||||
<td style="width: 460.5px;">Executes a block of code while a
|
||||
condition is true or until a condition is met</td>
|
||||
<td style="width: 708.017px;">DO<br>
|
||||
.....<br>
|
||||
LOOP {UNTIL | WHILE} <EXPRESSION></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>WHILE | WEND</td>
|
||||
<td>Executes a block of code while a condition is true</td>
|
||||
<td>WHILE <EXPRESSION><br>
|
||||
.....<br>
|
||||
WEND</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>FOR | TO | STEP | NEXT</td>
|
||||
<td>Sets a counter variable to an initial value and executes a block
|
||||
of code until the counter variable has reached a peak value</td>
|
||||
<td>FOR <ID> = <EXPRESSION> TO <EXPRESSION>
|
||||
{STEP} <EXPRESSION><br>
|
||||
.....<br>
|
||||
NEXT</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>EXIT</td>
|
||||
<td>Exits a loop</td>
|
||||
<td>EXIT { DO | FOR | WHILE }</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>CONTINUE</td>
|
||||
<td>Jumps back to the start of a loop</td>
|
||||
<td>CONTINUE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>FUNCTION | RETURN |<br>
|
||||
END FUNCTION</td>
|
||||
<td>Creates a function</td>
|
||||
<td>FUNCTION <ID> ( {BYREF}<ID>, ...)<br>
|
||||
.....<br>
|
||||
RETURN <EXPRESSION><br>
|
||||
END FUNCTION</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>SUB | RETURN | END SUB</td>
|
||||
<td>Creates a Sub Routine</td>
|
||||
<td>SUB <ID> ( {BYREF} <ID>, ...)<br>
|
||||
.....<br>
|
||||
{RETURN}<br>
|
||||
END SUB</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PRINT</td>
|
||||
<td>Outputs Text to a console</td>
|
||||
<td>PRINT <EXPRESSION></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>END</td>
|
||||
<td>Ends a program. Add a number expression after END to set the exit code.</td>
|
||||
<td>END <br>END <EXPRESSION></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>DIM</td>
|
||||
<td>Creates a variable or array</td>
|
||||
<td>DIM <ID> { [ } <EXPRESSION>{ ] }</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>REDIM</td>
|
||||
<td>Resizes an array</td>
|
||||
<td>REDIM <ID> { [ } <EXPRESSION>{ ] }</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>DELETE</td>
|
||||
<td>Deletes an array</td>
|
||||
<td>DELETE <ID></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TRUE</td>
|
||||
<td>Constant that evaluates to NOT 0</td>
|
||||
<td>TRUE</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>FALSE</td>
|
||||
<td>Constant that evaluates to 0</td>
|
||||
<td>FALSE</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user