aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-18 12:47:07 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-03-18 12:47:07 -0400
commitdf2e01c15e0ff44aaf60589095aba75669b110d7 (patch)
treefcc1a380042adf57ba1f5f003c4d45c6cb698717
parent5f3dac786c6b27f04d5cf7f27ea994135d26041e (diff)
Add some better file comments
-rw-r--r--compile.c2
-rw-r--r--enums.c2
-rw-r--r--environment.c3
-rw-r--r--parse.c2
-rw-r--r--structs.c2
-rw-r--r--tomo.c1
6 files changed, 7 insertions, 5 deletions
diff --git a/compile.c b/compile.c
index e1537c7d..d55560ef 100644
--- a/compile.c
+++ b/compile.c
@@ -1,4 +1,4 @@
-
+// Compilation logic
#include <ctype.h>
#include <gc/cord.h>
#include <gc.h>
diff --git a/enums.c b/enums.c
index 465f42d3..d6b4c055 100644
--- a/enums.c
+++ b/enums.c
@@ -1,4 +1,4 @@
-
+// Logic for compiling tagged unions (enums)
#include <ctype.h>
#include <gc/cord.h>
#include <gc.h>
diff --git a/environment.c b/environment.c
index 1786be50..38b21d23 100644
--- a/environment.c
+++ b/environment.c
@@ -1,4 +1,5 @@
-
+// Logic for the environmental context information during compilation
+// (variable bindings, code sections, etc.)
#include <stdlib.h>
#include <signal.h>
diff --git a/parse.c b/parse.c
index 2e9787c1..f235bc82 100644
--- a/parse.c
+++ b/parse.c
@@ -1,4 +1,4 @@
-// Parse code using recursive descent
+// Recursive descent parser for parsing code
#include <ctype.h>
#include <gc.h>
#include <libgen.h>
diff --git a/structs.c b/structs.c
index 90aef9bb..4888cc54 100644
--- a/structs.c
+++ b/structs.c
@@ -1,4 +1,4 @@
-
+// Logic for compiling new struct types defined in code
#include <ctype.h>
#include <gc/cord.h>
#include <gc.h>
diff --git a/tomo.c b/tomo.c
index e59ced8b..a6e2f63e 100644
--- a/tomo.c
+++ b/tomo.c
@@ -1,3 +1,4 @@
+// The main program that runs compilation
#include <stdio.h>
#include <stdlib.h>
#include <gc.h>