*: small changes

This commit is contained in:
2026-01-28 07:35:45 +00:00
parent 2dc0de78b5
commit 0beab4e11d
2 changed files with 5 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ bindings, with the final expression being a reference to some binding.
This also simplifies type checking to just verifying each little This also simplifies type checking to just verifying each little
binding and operation. binding and operation.
*** Examples *** Examples
**** Basic example **** Basic example
Consider the following ARL code: Consider the following ARL code:
@@ -145,6 +146,10 @@ Define how we can type check arguments on the stack against the types
a callable expects for its inputs. In the same vein, we also need to a callable expects for its inputs. In the same vein, we also need to
figure out the type of whatever is pushed onto the stack by the figure out the type of whatever is pushed onto the stack by the
callable. callable.
*** TODO Use SSA for user level bindings
[[https://en.wikipedia.org/wiki/Static_single-assignment_form][Static
single-assignment form]] is something we should use when we introduce
for user level bindings.
** TODO Code generator ** TODO Code generator
[[file:src/arl/target-c/]] [[file:src/arl/target-c/]]

View File

@@ -18,7 +18,6 @@
#include <arl/parser/ast.h> #include <arl/parser/ast.h>
#include <arl/parser/parser.h> #include <arl/parser/parser.h>
/// Parser
sv_t read_file(const char *filename) sv_t read_file(const char *filename)
{ {
FILE *fp = fopen(filename, "rb"); FILE *fp = fopen(filename, "rb");