<h1>Dyia</h1>
<h2>By Conor O'Brien</h2>
<h2>Test parse</h2>
<p>This gives you the initial parse (tokenization) and the final parse (parsing) of the input line. It only works for single lines.</p>
<textarea id="c" spellcheck="false">+~2</textarea>
<button id="g">Go</button>
<div id="o"></div>
<h2>Execute</h2>
<p>This is what an actual program would look like. It allows for multiple lines to be evaluated in succession.</p>
<textarea id="code" spellcheck="false">(i.5) + i.5</textarea>
<button id="submit">Go</button>
<div id="output"></div>
<h2>About</h2>
<p>Dyia is a language similar to J, APL, and the like. It is currently under devolpment, so only basic things (like operations and variable assignments) are available. No hooks, chains, etc. are as of yet implemented, but the following table
contains some of the implemented features and commands. LHS is "Left Hand Side" and is the left argument to the function, and RHS is "Right Hand Side" in the same fashion. (Parens are grouping.)</p>
<table>
<tr>
<th>Command</th>
<th>Dyadic case</th>
<th>Monadic case</th>
<tr>
<tr>
<td>%</td>
<td>divide: LHS / RHS</td>
<td>reciprocal: is 1 / RHS</td>
</tr>
<tr>
<td>*</td>
<td>multiply: LHS × RHS</td>
<td>square: is RHS<sup>2</sup></td>
</tr>
<tr>
<td>+</td>
<td>add: LHS + RHS</td>
<td>sign: -1, if RHS < 0; 0, if RHS = 0; and 1, if RHS > 0.</td>
</tr>
<tr>
<td>-</td>
<td>subtract: LHS - RHS</td>
<td>negatin: -RHS</td>
</tr>
<tr>
<td>=:</td>
<td>assign: creates a variabl (LHS) with the value RHS.</td>
<td>none.</td>
</tr>
<tr>
<td>i.</td>
<td>zero cycle; J's <code>i.</code>.</td>
<td>none.</td>
</tr>
</table>
<p>Single-line comments are the semicolon, and multiline comments are like <code>;- this is a comment -;</code></p>
<div id=end></div>