aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-11-11 00:07:55 +0000
committeraethrvmn <me@aethrvmn.gr>2025-11-11 00:07:55 +0000
commit5346f7e4c6f9523b09709c6642d8f4df4a564f9d (patch)
treed5bbc69ea59008db9db300b3d2bb8541a7b6ea07 /src
parentmade base implementation for macro (diff)
wrote basic compiler of each tessera
Diffstat (limited to 'src')
-rw-r--r--src/tesserae.nim15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/tesserae.nim b/src/tesserae.nim
index 11f2fe0..e89c965 100644
--- a/src/tesserae.nim
+++ b/src/tesserae.nim
@@ -1,11 +1,20 @@
-import os
+import std / [ os, osproc, strformat, strutils ]
+
# This is just an example to get you started. A typical binary package
# uses this file as the main entry point of the application.
proc main() =
# relative=true removes the folder name
# for example tesserae/test -> test
- for tessera in walkDir("tesserae", relative=true, checkDir=true):
- echo tessera
+ #let buildFiles = @[]
+ for file in walkDir("tesserae", checkDir=true):
+ if file.path.endsWith(".nim"):
+ echo "Found {file.path}".fmt
+ echo "Compiling..."
+ let output = execCmd("nim c -d:release --outdir:/mosaic/panel {file.path}".fmt)
+ # echo output
+ echo ""
+
+
when isMainModule:
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.