diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2023-03-03 00:52:37 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2023-03-03 00:52:37 -0500 |
commit | 7a2fe9afac30082137dd72a072d9a8afbbc45236 (patch) | |
tree | 415af2f5e8a90e288d4e2e6fa798049f77847547 /tnslc/run.ps1 | |
parent | e53a018ffe378af678fa0e7b3c0bc7d098d83ac9 (diff) |
Refactor Variable struct
Diffstat (limited to 'tnslc/run.ps1')
-rw-r--r-- | tnslc/run.ps1 | 8 |
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 |