generated docs added
This commit is contained in:
203
doc/doc_files/operators.html
Normal file
203
doc/doc_files/operators.html
Normal file
@@ -0,0 +1,203 @@
|
||||
<!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 Operators</title></head><body>
|
||||
<table style="width: 925px; height: 546px;" border="1">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: left;"><big><big><span style="font-weight: bold;">OPERATORS</span></big></big></td>
|
||||
<td style="height: 41px;"><big><big><span style="font-weight: bold;">DESCRIPTION</span></big></big></td>
|
||||
<td><big><big><span style="font-weight: bold;">EXAMPLE</span></big></big></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>ADDITION ( + )</small></td>
|
||||
<td style="font-weight: bold;"><small>ADDS TWO NUMBERS</small></td>
|
||||
<td style="font-weight: bold;"><small>1 + 2</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>SUBTRACTION ( - )</small></td>
|
||||
<td style="font-weight: bold;"><small>SUBTRACTS ONE NUMBER FROM ANOTHER</small></td>
|
||||
<td style="font-weight: bold;"><small>1 - 2</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>MULTIPLICATION ( * )</small></td>
|
||||
<td style="font-weight: bold;"><small>MULTIPLIES TWO NUMBERS</small></td>
|
||||
<td style="font-weight: bold;"><small>1 * 2</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>DIVISION ( / )</small></td>
|
||||
<td style="font-weight: bold;"><small>DIVIDES ONE NUMBER BY ANOTHER</small></td>
|
||||
<td style="font-weight: bold;"><small>1 / 2</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>EXPONENT ( ^ )</small></td>
|
||||
<td style="width: 466.85px; font-weight: bold;"><small>RAISES ONE NUMBER TO THE POWER OF
|
||||
ANOTHER</small></td>
|
||||
<td style="width: 211.75px; font-weight: bold;"><small>1^2</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 219.916px; font-weight: bold;"><small>GREATER ( > )</small></td>
|
||||
<td style="font-weight: bold;"><small>RETURNS TRUE IF THE FIRST NUMBER IS GREATER THAN THE SECOND</small></td>
|
||||
<td style="font-weight: bold;"><small>1 > 2 (RETURNS FALSE)<br>
|
||||
|
||||
2 > 1 (RETURNS TRUE)</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>LESS ( < )</small></td>
|
||||
<td style="font-weight: bold;"><small>RETURNS TRUE IF THE FIRST NUMBER IS LESS THAN THE SECOND</small></td>
|
||||
<td style="font-weight: bold;"><small>1 < 2 (RETURNS TRUE)<br>
|
||||
|
||||
2 < 1 (RETURNS FALSE)</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>GREATER OR EQUAL ( >= )</small></td>
|
||||
<td style="font-weight: bold;"><small>RETURNS TRUE IF THE FIRST NUMBER IS GREATER THAN OR EQUAL TO THE
|
||||
SECOND</small></td>
|
||||
<td style="font-weight: bold;"><small>1 >= 2 (RETURNS FALSE)<br>
|
||||
|
||||
1 >= 1 (RETURNS TRUE)<br>
|
||||
|
||||
2 >= 1 (RETURNS TRUE)</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>LESS OR EQUAL ( <= )</small></td>
|
||||
<td style="font-weight: bold;"><small>RETURNS TRUE IF THE FIRST NUMBER IS LESS THAN OR EQUAL TO THE
|
||||
SECOND</small></td>
|
||||
<td style="font-weight: bold;"><small>1 <= 2 (RETURNS TRUE)<br>
|
||||
|
||||
1 <= 1 (RETURNS TRUE)<br>
|
||||
|
||||
2 <= 1 (RETURNS FALSE)</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>EQUAL ( = )</small></td>
|
||||
<td style="font-weight: bold;"><small>RETURNS TRUE IF BOTH VALUES ARE EQUAL</small></td>
|
||||
<td style="font-weight: bold;"><small>1 = 2 (RETURNS FALSE)<br>
|
||||
|
||||
1 = 1 (RETURNS TRUE)</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>NOT EQUAL ( <> )</small></td>
|
||||
<td style="font-weight: bold;"><small>RETURNS TRUE IF BOTH VALUES ARE NOT EQUAL</small></td>
|
||||
<td style="font-weight: bold;"><small>1 <> 2 (RETURNS TRUE)<br>
|
||||
|
||||
1 <> 1 (RETURNS FALSE)</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>MODULOUS ( MOD )</small></td>
|
||||
<td style="font-weight: bold;"><small>RETURNS THE REMAINDER OF THE FIRST NUMBER DIVIDED BY THE SECOND</small></td>
|
||||
<td style="font-weight: bold;"><small>1 MOD 2 (RETURNS 1)</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>SHIFT LEFT ( SHL )</small></td>
|
||||
<td style="font-weight: bold;"><small>SHIFTS THE BITS IN A NUMBER TO THE LEFT</small></td>
|
||||
<td style="font-weight: bold;"><small>1 SHL 2 (RETURNS 4)</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>SHIFT RIGHT ( SHR )</small></td>
|
||||
<td style="font-weight: bold;"><small>SHIFTS THE BITS IN A NUMBER TO THE RIGHT</small></td>
|
||||
<td style="font-weight: bold;"><small>4 SHR 2 (RETURNS 1)</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>AND</small></td>
|
||||
<td style="font-weight: bold;"><small>CONDUCTS AND COMPARISON OF TWO VALUES</small></td>
|
||||
<td style="font-weight: bold;"><small>1 AND 1</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>OR</small></td>
|
||||
<td style="font-weight: bold;"><small>CONDUCTS OR COMPARISON OF TWO VALUES</small></td>
|
||||
<td style="font-weight: bold;"><small>1 OR 1</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>XOR</small></td>
|
||||
<td style="font-weight: bold;"><small>CONDUCTS EXCLUSIVE-OR COMPARISON OF TWO VALUES</small></td>
|
||||
<td style="font-weight: bold;"><small>1 XOR 1</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>NOT</small></td>
|
||||
<td style="font-weight: bold;"><small>CONDUCTS NOT OPERATION ON A VALUE</small></td>
|
||||
<td style="font-weight: bold;"><small>NOT 1</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>STRING ADD ( + )</small></td>
|
||||
<td style="font-weight: bold;"><small>COMBINES TWO STRING VALUES</small></td>
|
||||
<td style="font-weight: bold;"><small>
|
||||
"HELLO"+"WORLD"</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-weight: bold;"><small>END OF INSTRUCTION ( : )</small></td>
|
||||
<td style="font-weight: bold;"><small>TELLS COMPILER TO END CURRENT INSTRUCTION AND READ THE FOLLOWING CODE AS NEW INSTRUCTION</small></td>
|
||||
<td style="font-weight: bold;"><small>X = 5: PRINT X</small></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user