summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/compiler.lm3
-rw-r--r--src/compiler/expr.lm5
-rw-r--r--src/compiler/types.lm3
3 files changed, 11 insertions, 0 deletions
diff --git a/src/compiler/compiler.lm b/src/compiler/compiler.lm
index a4968f9..33dd2c3 100644
--- a/src/compiler/compiler.lm
+++ b/src/compiler/compiler.lm
@@ -1,3 +1,6 @@
+# Filespec compiler
+# Takes in fspec source code and outputs bytecode for further processing
+
include 'expr.lm'
context fspec
diff --git a/src/compiler/expr.lm b/src/compiler/expr.lm
index d615358..f758723 100644
--- a/src/compiler/expr.lm
+++ b/src/compiler/expr.lm
@@ -1,3 +1,8 @@
+# Expression parser && collapser
+# This lets us know what kind of operations we need to compile in.
+# But it also collapses the expressions offline, so we don't have to compile in constant expressions
+# This makes the compiler "useful"
+
include 'types.lm'
global RTYPE_UNKNOWN:int = 0
diff --git a/src/compiler/types.lm b/src/compiler/types.lm
index 34a9026..6edc2ea 100644
--- a/src/compiler/types.lm
+++ b/src/compiler/types.lm
@@ -1,3 +1,6 @@
+# Basic (mostly) langauge independent types
+# These are the foundation for understanding the source code
+
context number
context unsigned
literal `true `false