Aria

A low-level systems programming language
git clone git://git.m21c.me/Aria.git
Log | Files | Refs | LICENSE

commit 0701d61e320ece485efb05e86b4d69f87cc6c88e
parent 917733ec3da6966cc2962d6194ba7716347d3b6d
Author: m21c  <ho*******@gmail.com>
Date:   Mon, 12 Jul 2021 22:43:06 +0200

inserted empty-lines & renamed comments

Diffstat:
Maria.c | 22++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/aria.c b/aria.c @@ -253,6 +253,8 @@ struct Env { Env *pendingnext, *pendingprev; }; + + /* - look-up tables - */ Type prim[] = { @@ -475,7 +477,7 @@ const uint8_t opinfo[] = { -/* utility function */ +/* - utility functions - */ #define lengthof(array) ((int) sizeof(array) / (int) sizeof(*(array))) @@ -616,6 +618,8 @@ advance: return c != EOF || i; } + + /* - keyword map - */ #define KEYWORD_MAP_SIZE 128 @@ -672,6 +676,8 @@ getkeyword(const char *str, int n) { return -1; } + + /* - string map - */ typedef @@ -791,7 +797,9 @@ getstringkey(StringMap *map, const char *str, int n) { #define getstring(map, key) ((map).vals[(key) - 1].str) #define getlength(map, key) ((map).vals[(key) - 1].len) -/* node-structure & global vars for lexer and subsequent phases */ + + +/* - global-vars - */ FILE *filein; const char *filename; @@ -801,6 +809,8 @@ char stringbuf[1024]; int currcol, lastcol, lastindent, lastkind; Node tok; + + /* - error reporting - */ int @@ -833,6 +843,8 @@ error(const char *fmt, ...) { return n; } + + /* - lexer - */ #define nextindent(indent) \ @@ -2122,6 +2134,8 @@ exprlist(bool isparam, Type *paramtype) { return head; } + + /* - type-checking & folding - */ bool @@ -2718,6 +2732,8 @@ foldexpr(Node *expr) { return expr; } + + /* - print ast - */ typedef @@ -3203,6 +3219,8 @@ printexpr(FILE *out, Node *expr, int indent) { return n; } + + /* - main-routine - */ int