summaryrefslogtreecommitdiff
path: root/tnslc/run.ps1
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-03-03 00:52:37 -0500
committerKyle Gunger <kgunger12@gmail.com>2023-03-03 00:52:37 -0500
commit7a2fe9afac30082137dd72a072d9a8afbbc45236 (patch)
tree415af2f5e8a90e288d4e2e6fa798049f77847547 /tnslc/run.ps1
parente53a018ffe378af678fa0e7b3c0bc7d098d83ac9 (diff)
Refactor Variable struct
Diffstat (limited to 'tnslc/run.ps1')
-rw-r--r--tnslc/run.ps18
1 files changed, 8 insertions, 0 deletions
diff --git a/tnslc/run.ps1 b/tnslc/run.ps1
new file mode 100644
index 0000000..15b78f3
--- /dev/null
+++ b/tnslc/run.ps1
@@ -0,0 +1,8 @@
+if ($args.Length -gt 0) {
+ ..\tint.exe -flags """$args""" -in tnslc.tnsl
+ nasm -f win64 -o "$($args[0]).obj" "$($args[0]).asm"
+ gcc -o "$($args[0]).exe" "$($args[0]).obj"
+} else {
+ Write-Host "Usage: run [file to compile]";
+ Write-Host "";
+} \ No newline at end of file