From 7a2fe9afac30082137dd72a072d9a8afbbc45236 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 3 Mar 2023 00:52:37 -0500 Subject: Refactor Variable struct --- tnslc/run.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tnslc/run.ps1 (limited to 'tnslc/run.ps1') 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 -- cgit v1.2.3