Skip to content

Commit

Permalink
Made navigating the documentation easier
Browse files Browse the repository at this point in the history
  • Loading branch information
FlatAssembler committed Sep 1, 2021
1 parent 4102f25 commit 2101f4b
Showing 1 changed file with 41 additions and 9 deletions.
50 changes: 41 additions & 9 deletions AEC_specification.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@
white-space: nowrap;
overflow-x: scroll;
}
ol ol {
list-style-type: lower-alpha;
}
/* Generated by VIM */
.Constant {
font-weight: bold;
Expand Down Expand Up @@ -630,16 +633,43 @@ <h2 style="text-align: center">AEC Specification</h2>
<ol>
<li><a href="#Introduction">Introduction</a></li>
<li><a href="#Platforms">What platforms can be targeted now</a></li>
<li><a href="#HowToCompile">How to use the compilers</a></li>
<li>
<a href="#HowToCompile">How to use the compilers</a>
<ol>
<li>
<a href="#AEC_to_x86">Original ArithmeticExpressionCompiler</a>
</li>
<li><a href="#AEC_to_WebAssembly">AECforWebAssembly</a></li>
</ol>
</li>
<li><a href="#Comments">Comments</a></li>
<li><a href="#Constants">Constants</a></li>
<li><a href="#Variables">Variable declarations</a></li>
<li><a href="#Arrays">Arrays and pointers</a></li>
<li><a href="#Assignments">Assignments</a></li>
<li><a href="#Operators">Operators</a></li>
<li><a href="#Branching">Branching</a></li>
<li>
<a href="#Branching">Branching</a>
<ol>
<li>
<a href="#ternary_operator_bug"
>Caveat about the ternary
<span class="inline_code">?:</span> operator</a
>
</li>
</ol>
</li>
<li><a href="#Loops">Loops</a></li>
<li><a href="#Functions">Functions</a></li>
<li>
<a href="#Functions">Functions</a>
<ol>
<li>
<a href="#namedArguments"
>Named function parameters (named arguments)</a
>
</li>
</ol>
</li>
<li><a href="#Structures">Structures</a></li>
<li><a href="#Assembly">Inline assembly</a></li>
<li><a href="#Builtin">Built-in functions</a></li>
Expand Down Expand Up @@ -821,8 +851,9 @@ <h2 style="text-align: center">AEC Specification</h2>
Sorry about that, but it will take me a lot of time to translate that to
English. <br /><br />
<b id="HowToCompile">How to use the compilers</b><br />
Probably the simplest way to use the AEC-to-x86 compiler on a Linux
machine is to type the following code into a terminal emulator:
<a name="AEC_to_x86"></a>Probably the simplest way to use the AEC-to-x86
compiler on a Linux machine is to type the following code into a
terminal emulator:
<pre class="LinuxShell">
mkdir ArithmeticExpressionCompiler
cd ArithmeticExpressionCompiler
Expand Down Expand Up @@ -936,8 +967,9 @@ <h2 style="text-align: center">AEC Specification</h2>
<span class="inline_code">;</span> means to have multiple
assembly-language directives in a single line (useful for when invoked
from a debugger, where you need to inline a few directives).<br />
Using the AEC-to-WebAssembly compiler is, on most Linux machines, a
little trickier. The following code might work:
<a name="AEC_to_WebAssembly"></a>Using the AEC-to-WebAssembly compiler
is, on most Linux machines, a little trickier. The following code might
work:
<pre class="LinuxShell">
git clone <a href="https://github.com/FlatAssembler/AECforWebAssembly.git">https://github.com/FlatAssembler/AECforWebAssembly.git</a>
cd AECforWebAssembly
Expand Down Expand Up @@ -1822,8 +1854,8 @@ <h2 style="text-align: center">AEC Specification</h2>
(in languages with them, there is basically no need for the abstract
builders and directors).</del
><br />
<b>UPDATE</b> on 26/08/2021: I have implemented named function
arguments, as illustrated by the
<b id="namedArguments">UPDATE</b> on 26/08/2021: I have implemented
named function arguments, as illustrated by the
<a href="namedArgumentsTest.aec.html">Named Arguments Test</a>:
<pre>
// Should return 0.
Expand Down

0 comments on commit 2101f4b

Please sign in to comment.